Where the IP address lives in your email
The sender's IP address is not visible in the body of an email or in the "From" line. It lives in the email header — a block of technical information that email programs hide by default. Every email server that touches your message adds a line to the header, and those lines include the IP address of the server that sent it.
To see the header, you need to open the email and look for a button or menu option labeled "Show original," "View message source," "Full headers," or "View raw message." The exact name depends on which email service you use. Once you open the header, you will see dozens of lines of text. The IP address you are looking for appears in a line that starts with "Received:" — usually the first or second one from the top.
The header is long and dense on purpose. Email servers use it to track the path a message took and to prevent spam. Learning to read it takes practice, but the IP address itself is straightforward to spot once you know what line to look at.
Key Takeaways
- Email headers are hidden by default in Gmail, Outlook, Apple Mail, and most other services; you must manually open them to see the IP address.
- The sender's IP address appears in a "Received:" line near the top of the header, formatted as four numbers separated by periods (for example, 192.168.1.1).
- The topmost "Received:" line usually shows the most recent server; the oldest lines at the bottom show where the email originated.
- An IP address alone does not identify a person — it identifies a server or network, and you will need additional steps to learn who owns it.
How to view headers in Gmail
Open the email you want to examine. Click the three vertical dots (the menu icon) in the top right corner of the email. Select "Show original" from the dropdown menu. A new tab or window will open with the full message source displayed as plain text.
Scroll to the top of the source. Look for the first "Received:" line. It will look something like this:
Received: from mail.example.com (mail.example.com. [203.0.113.45]) by mx.google.com with SMTP id abc123def456
The IP address in this example is 203.0.113.45. It appears in square brackets after the domain name. Copy this number and keep it for the next step. If you see multiple "Received:" lines, the topmost one is the most recent; the one closest to the bottom is usually closest to the original sender.
How to view headers in Outlook and Outlook.com
In Outlook.com (the web version), open the email. Click the three dots menu at the top right. Select "View message details" or "View message source." The header will appear in a popup or new window.
In Outlook desktop (the installed program on Windows), right-click the email in your inbox. Choose "Properties" (Windows) or "Message" (Mac). A dialog box will open. Look for a button labeled "Internet Headers" or "Message Headers" and click it. The full header text will appear in a new window.
Once the header is open, find the first "Received:" line and look for the IP address in square brackets. It follows the same format as Gmail: a domain name, then the IP in brackets, then additional server information.
How to view headers in Apple Mail and iCloud Mail
In Apple Mail on Mac, open the email. Go to the menu bar and click "Message." Select "Show All Headers" or "Show Raw Message Source." The full header will display at the top of the email window.
In iCloud Mail (the web version), open the email. Click the gear icon or menu button. Look for an option called "View Message Source" or "Show Headers." The header will open in a new window or popup.
Locate the first "Received:" line and extract the IP address from the square brackets. The format is identical to other email services.
Understanding what the IP address tells you
An IP address is assigned to a server or network device, not to a person. Knowing the IP address does not automatically tell you who sent the email — it tells you which server handled it. That server could belong to Gmail, a corporate mail system, a university, an internet service provider, or a web hosting company.
The IP address is useful for determining whether an email came from where it claims to come from. If an email says it is from your bank but the IP address belongs to a different country or a known spam network, that is a red flag. You can check who owns an IP address using a free WHOIS lookup tool or an IP geolocation service, which will tell you the organization and sometimes the geographic location associated with that address.
Keep in mind that many legitimate emails are sent through third-party mail services. An email from a friend might show an IP address belonging to Gmail, Microsoft, or another large provider, even though your friend wrote it. The IP address alone does not prove fraud — it is one piece of information to consider alongside other signs.
Why some emails do not show a clear IP address
Some emails have headers that are incomplete or obscured. Spam and phishing emails often have forged headers, meaning the "Received:" lines do not accurately reflect where the email came from. A scammer might add fake "Received:" lines to make an email look legitimate.
If you see a header with no "Received:" lines, or only one, or lines that do not follow the standard format, the email may have been tampered with. Legitimate emails from major providers (Gmail, Outlook, Yahoo) almost always have multiple "Received:" lines showing the path the message took through their servers.
If you are trying to trace a suspicious email, look for inconsistencies: IP addresses that do not match the claimed sender, missing or incomplete headers, or "Received:" lines that are out of chronological order. These are signs that the email may not be what it claims to be.
What to do once you have the IP address
Copy the IP address from the header. Go to a free WHOIS lookup service such as WHOIS.net, IP2Location, or MaxMind. Paste the IP address into the search box. The service will return information about the organization that owns or operates that IP address, the country it is registered in, and sometimes the city.
If the IP address belongs to a major email provider like Google, Microsoft, or Yahoo, the lookup will confirm that. If it belongs to a smaller organization or an internet service provider, you will see the company name and location. This information helps you decide whether the email is suspicious or legitimate.
If you believe an email is fraudulent or a phishing attempt, report it to your email provider. Most services have a "Report phishing" or "Report spam" button. Include the full header in your report if the provider asks for it — this helps them investigate and block similar emails in the future.
Frequently Asked Questions
Can I find someone's home address from their IP address?
No. An IP address identifies a network or server, not a specific person or location. Even if you know the IP address belongs to a particular internet service provider in a particular city, that does not tell you which customer used it or where they live. That information is private and protected by law.
What if the email header shows multiple IP addresses?
Multiple IP addresses in the header are normal and expected. Each "Received:" line shows a different server the email passed through. The topmost line is the most recent server (usually your email provider's server). The bottom lines are older and closer to the original sender. Read them from top to bottom to trace the email's path.
Does viewing the header change anything in my email account?
No. Viewing the header is read-only. You cannot accidentally delete the email, change it, or alert the sender by looking at the header. It is safe to open and examine as many times as you need.
What does it mean if I see "Received: from localhost"?
This usually means the email was sent from a computer on a local network rather than from an internet-facing mail server. It is common in corporate or university environments where mail is processed internally before being sent out. It is not a sign of fraud on its own, but combined with other red flags it can indicate a suspicious email.
Can I use the IP address to report spam to the police?
The IP address is one piece of information that law enforcement or your email provider can use, but it is not enough on its own. If you believe you are the victim of fraud or a crime, report it to your local police department and to the FBI's Internet Crime Complaint Center (IC3) at ic3.gov. Provide them with the full email header, not just the IP address.