Where email headers store the sender's IP address
Every email carries hidden information called headers that record the path the message took from sender to your inbox. The IP address appears in these headers, usually in a line labeled "Received:" that shows which mail server handled the message. You cannot see headers by default — you have to open them manually in your email client.
The IP address you find is not always the sender's personal computer. It is usually the mail server that sent the message on their behalf. If someone used Gmail, Outlook, or Yahoo Mail, the IP belongs to that company's server, not to them. If they sent from their own mail server or their workplace, the IP is more directly tied to their location or organization.
The headers also contain timestamps, which can help you understand when the message was actually sent versus when it arrived in your inbox. This matters if you are trying to verify whether someone was where they claimed to be at a particular time.
Key Takeaways
- Email headers are hidden by default; you must open them through your email client's menu or settings to see the IP address.
- The IP address in headers belongs to the mail server that sent the message, not necessarily the person who wrote it.
- Gmail, Outlook, Yahoo, and other major providers mask the sender's actual IP behind their own server address.
- Once you have the IP, you can search it in a free IP lookup tool to see what organization owns it and its approximate geographic location.
How to view headers in Gmail
Open the email and click the three-dot menu icon in the top right corner of the message. Select "Show original" from the dropdown. A new window opens displaying the full email source code, including all headers. The headers appear at the top of this window, before the message body.
Look for lines that begin with "Received:" — these are the most useful. The first "Received:" line (closest to the top) shows the most recent server that handled the message. Each "Received:" line above it shows an earlier step in the message's journey. The IP address appears after "from" or "by" in square brackets, like [192.0.2.1] or after "ip=" in some formats.
If the email came from a Gmail account, you will see Google's IP address, not the sender's personal IP. The same applies to Outlook, Yahoo, and other major providers — their servers mask the original sender's address.
How to view headers in Outlook and Outlook.com
In Outlook desktop, right-click the email and select "Message" or "Properties" (the exact wording depends on your version). A window opens showing message details. Look for a section labeled "Internet Headers" or "Message Options" — you may need to scroll down. Copy the text from this section and paste it into a text editor to read it more easily.
In Outlook.com (the web version), open the email and click the three-dot menu. Select "View message details" or "View message source." The headers display in a panel on the right side of the screen. The same "Received:" lines appear here, with IP addresses in square brackets.
Outlook often includes more detailed routing information than Gmail, showing multiple mail servers the message passed through. This can be useful if you are trying to trace a message through a corporate network or a chain of forwarded servers.
How to view headers in Apple Mail and other clients
In Apple Mail on Mac, open the email and go to the menu bar. Click "Message" and select "Show All Headers." The headers appear at the top of the email window. On iPhone or iPad, open the email, tap "Details" at the top, then scroll down to find the full headers section.
In Thunderbird (a free email client for Windows, Mac, and Linux), right-click the email in your inbox and select "View Message Source." The headers appear at the top of the window that opens. In Yahoo Mail, click the three-dot menu and select "View Raw Message" or "View Full Headers."
If you use a different email provider or client, search "[your email provider] view email headers" — most services have a similar option, though the menu path varies.
What to do once you have the IP address
Copy the IP address from the headers and paste it into a free IP lookup tool. Common options include IP Lookup (iplookup.net), WhatIsMyIPAddress (whatismyipaddress.com), or MaxMind GeoIP2 (geoip2.maxmind.com). These tools show you the organization that owns the IP, the country and city where the server is located, and sometimes the internet service provider (ISP).
The geographic location is approximate — it shows where the server is physically located, not necessarily where the person sending the email was sitting. A person in New York using a Gmail account will show a Google server location, which might be in California or another state. A person using their company's mail server will show their company's data center location.
If the IP belongs to a major email provider like Google, Microsoft, or Yahoo, the lookup will tell you that directly. This means the sender used that company's email service, and you cannot trace further without additional information or help from that company.
When you cannot find or use the IP address
Some emails do not include a usable IP address in the headers. This happens when the sender used a privacy-focused email service, a VPN, or an anonymization tool that strips or masks header information. Proton Mail, for example, is designed to hide sender metadata. In these cases, the headers may be incomplete or show only the privacy service's server, not the original sender.
Forwarded emails complicate the picture. If someone forwarded an email to you, the headers show the forwarder's mail server, not the original sender's. The original headers are usually preserved in the message body as quoted text, but they may be incomplete or altered.
If you need to identify a sender for a serious reason — fraud, harassment, or a legal matter — the IP address alone is rarely enough. Law enforcement and courts typically require a formal request to the email provider, which has logs that connect IP addresses to account information. You cannot make this request yourself; it requires a police report or a court order.
Understanding what the IP address actually tells you
An IP address is a piece of technical information, not proof of identity. It tells you which server sent the message and where that server is located. It does not tell you who was using that server, whether the account was hacked, or whether the sender is who they claim to be.
Someone can send an email from a hacked account, a borrowed computer, a public WiFi network, or through a proxy server. The IP address will point to the server or network they used, not necessarily to them personally. This is why IP addresses are useful for technical investigation but not for definitive identification.
If you are concerned about an email's authenticity, look for other signs: does the sender's address match their usual email, or is it slightly different? Does the message ask you to click a link or read a file? Does it create a sense of urgency? These are often better indicators of fraud than the IP address alone.
Frequently Asked Questions
Can I find someone's home IP address from their email?
Not reliably. If they sent from their personal computer on their home network, the IP might be their home ISP address. But most people use email through Gmail, Outlook, or their phone, which masks their home IP behind a company server. Even if you see a home ISP address, it belongs to the internet connection, not to a specific person — the ISP would need a court order to connect it to a name.
What if the email headers are blank or missing?
Some email clients or forwarding services strip headers to protect privacy. If headers are missing, you cannot extract an IP address. If headers are present but the "Received:" lines are empty, the email may have been sent through a privacy service or anonymization tool. In either case, there is no technical way to recover the information.
Does viewing headers let the sender know I looked them up?
No. Viewing headers is a local action on your device — it does not send any signal back to the sender or their mail server. The sender cannot tell that you opened the email, let alone that you looked at the headers.
Can I report someone based on their IP address?
An IP address alone is not enough for law enforcement to act. If you are being harassed, threatened, or defrauded, report the content and the email address to the platform (Gmail, Outlook, etc.) and to local police. Include the full email and headers in your report. The police can then request account information from the email provider if they open an investigation.
What if the IP address is from a VPN or proxy?
The IP lookup will show the VPN or proxy service's location, not the sender's actual location. This is intentional — people use VPNs to hide their real IP. You cannot trace further without help from the VPN provider, and most VPN services do not keep logs or will not share them without a court order.