Where the IP address lives in your email

Every email carries hidden information called headers — a block of text that shows the path your message took from sender to your inbox. The IP address is buried in those headers, usually in a line that starts with "Received:" or "X-Originating-IP". You cannot see headers by default; you have to ask your email program to show them.

The IP address you find is not always the sender's real location. It might belong to their email provider's server, their company's mail server, or a VPN they were using. But it is the best starting point you have without involving law enforcement.

Key Takeaways

  • Email headers contain IP address information, but you must manually display them — they are hidden by default in Gmail, Outlook, and most other services.
  • The "Received:" line closest to the top of the headers usually shows the sender's mail server, not necessarily their personal device.
  • An IP address alone does not identify a person; it identifies a network connection at a moment in time.
  • If you need to report a threatening or fraudulent email, forward the full headers to law enforcement or your email provider's abuse team rather than trying to trace it yourself.

How to view headers in Gmail

Open the email you want to examine. Click the three dots (more options) in the top right corner of the message. Select "Show original" from the dropdown menu. A new tab or window will open showing the raw email, including all headers.

Look for lines that begin with "Received:". There will usually be several of them, stacked in reverse order. The topmost "Received:" line (the one closest to the date) typically shows the sender's mail server. You are looking for text that contains an IP address in brackets, like [192.168.1.1] or [203.0.113.45].

Copy the entire raw email text if you need to save it. This preserves the headers exactly as they were sent, which matters if you are reporting the email to someone else.

How to view headers in Outlook and Outlook.com

In Outlook on the web, open the message and click the three dots in the top right. Select "View message details" or "View message source" (the exact wording depends on your version). A panel will open on the right side showing the headers.

In Outlook desktop (the installed program on Windows or Mac), right-click the email in your inbox and select "Properties" (Windows) or "Get Info" (Mac). A window will open with a "Message" tab. Click "Internet Headers" or "Internet Headers" button to see the full header block.

Again, scan for "Received:" lines and look for IP addresses in brackets. The format is the same as Gmail.

How to view headers in Apple Mail and other services

In Apple Mail on Mac, open the message and go to the menu bar: View → Message → All Headers. The headers will display at the top of the email window.

In Yahoo Mail, open the message, click the three dots, and select "View Raw Message" or "View Full Headers" depending on your version. In ProtonMail, click the three dots and select "View Headers".

If your email service is not listed here, search "[your email service] view headers" — nearly every provider has a way to display them, though the menu path varies.

What to do once you have the IP address

An IP address by itself tells you which internet service provider (ISP) or company owned that connection at the time the email was sent. It does not tell you the sender's name, street address, or identity. A reverse IP lookup tool (available free online) can show you the ISP name and sometimes the city, but that is the limit of what is publicly available.

If the email is threatening, fraudulent, or part of a crime, do not attempt to trace it further yourself. Instead, forward the full headers to your email provider's abuse team or to law enforcement. Gmail, Outlook, Yahoo, and others have dedicated teams that can work with ISPs to identify senders when there is a legal reason to do so. Your email provider has far more tools than you do, and law enforcement can compel ISPs to release account holder information.

If you are straightforward curious about where an email came from, the IP address and ISP name are usually as far as you can go without legal process.

Why headers can be misleading

A sender can forge some header information, though not all of it. The "From:" line (the sender's display name and address) is straightforward to fake. The "Received:" lines are harder to forge because they are added by real mail servers as the message passes through the system.

However, a sender using a VPN, a proxy, or a company mail server will show that server's IP address, not their personal device's IP. A Gmail user will show Google's mail server IP, not their home internet IP. This is why the IP address is a starting point, not a conclusion.

If someone is using a free email service or a large provider, the IP address usually leads nowhere useful. If someone is using a company email address, the IP might belong to their employer's mail server, and you would need to contact that company to go further.

When to involve your email provider or law enforcement

Report the email to your provider's abuse team if it contains threats, attempts to steal your password, claims to be from your bank or a service you use, or asks you to send money. Include the full headers in your report. Your provider can see logs that you cannot and can contact the sender's ISP if the message violates their terms of service.

Contact law enforcement if the email is part of a crime — extortion, harassment, fraud involving money, or threats of violence. Provide them with the full email and headers. They have legal authority to compel ISPs to release account holder information, which is something you cannot do on your own.

Do not reply to suspicious emails, click links in them, or read attachments from them, even if you are trying to gather information. The safest approach is to report and move on.

Frequently Asked Questions

Can I find someone's home address from their IP address?

No. An IP address identifies a network connection, not a physical location precise enough to be useful. It might show the city or region, but not a street address. Only the ISP that owns the IP address has detailed location records, and they only release that information to law enforcement with a court order.

What if the email headers show multiple IP addresses?

Each "Received:" line represents one mail server the message passed through. The topmost one (closest to the date) is usually the closest to the original sender. The ones below it are mail servers that relayed the message toward your inbox. Look at the top one first.

Does a VPN hide the IP address in email headers?

A VPN hides your real IP address, but the mail server you send through will still record the VPN's IP address in the headers. So the headers will show the VPN provider's IP, not your home internet IP. This is why headers are not a reliable way to identify someone using a VPN.

Can I trace an email from a free service like Gmail or Yahoo?

The headers will show Gmail or Yahoo's mail server IP, not the sender's personal device. You would need to report the email to Gmail or Yahoo's abuse team and let them investigate. They can see account creation details and activity logs that you cannot access.

Is it legal to trace an email myself?

Viewing your own email's headers is legal. Attempting to use that information to contact or identify someone, especially if they did not consent, may violate harassment or stalking laws depending on your location and intent. If you have a legitimate reason to identify someone, work with your email provider or law enforcement instead.