What you can actually see in an email header

An email header contains routing information that shows every server the message passed through on its way to your inbox. The IP address of the sender's mail server — not necessarily the sender's personal device — appears in a field called "Received" near the top of the header. You cannot see this information in the normal message view; you have to open the raw header yourself.

The IP address you find belongs to the mail server that sent the message, which might be Gmail's server, your company's mail server, or a third-party email service. It does not tell you the sender's home address, their device, or their physical location with any precision. A person using Gmail from anywhere in the world will show Gmail's server IP, not their own.

If you are trying to trace a suspicious or harassing email, the IP address is a starting point, but it is not a complete answer on its own. Law enforcement and email providers have tools to go further; you do not.

Key Takeaways

  • The email header contains the sender's mail server IP address in the "Received" field, but you must open the raw header to see it — it does not appear in the normal message view.
  • The IP address belongs to the mail server, not the sender's personal device, so it shows where the email was processed, not where the person is located.
  • Different email providers store headers in different places: Gmail uses "Show original," Outlook uses "Message" then "Actions," and other providers have their own menus.
  • If you are dealing with harassment, fraud, or a threat, report the email to the provider and law enforcement rather than investigating on your own.

How to view the email header in Gmail

Open the email you want to examine. Click the three vertical dots (more actions menu) in the top right corner of the message. Select "Show original" from the dropdown menu. A new tab or window will open showing the complete header and message body in plain text.

Look for the first "Received:" line at the very top. It will look something like this: Received: from mail.example.com (mail.example.com. [192.0.2.1]). The number in brackets is the IP address. If there are multiple "Received:" lines, the topmost one is from the server that delivered the message to Gmail's servers. The one below it is from the server before that, and so on down the chain.

Gmail also shows you the "From:" field, which displays the sender's email address, and the "Return-Path:" field, which may differ if the email was forwarded or sent through a service. None of these fields are difficult to fake, so do not assume they prove who sent the message.

How to view the email header in Outlook and Outlook.com

In Outlook desktop, open the email and click "File" in the top menu. Select "Properties" (or "Info" depending on your version). A window will open showing message details. Look for the "Internet Headers" section at the bottom — you may need to scroll down. The header text appears in a large box; copy and paste it into a text editor if you want to save it.

In Outlook.com (the web version), open the email and click the three dots menu in the top right. Select "View message details" or "View message source" depending on your version. The header will appear in a panel on the right side of the screen.

Search for "Received:" lines the same way you would in Gmail. The first one at the top shows the most recent server in the chain.

How to view the email header in other providers

Yahoo Mail: Open the email, click the three dots menu, and select "View raw message" or "View full headers." The header appears in a new window.

Apple Mail: Open the email, go to the "View" menu at the top, and select "Message" then "All Headers." The header information appears above the message body in the same window.

ProtonMail: Open the email and click the three dots menu. Select "View headers." A panel shows the header information.

Thunderbird (desktop email client): Open the email, go to "View" in the top menu, and select "Message Source." The full header and body appear in a new window.

If you use a different provider and cannot find the header option, search the provider's help documentation for "view headers" or "view source" along with the provider name.

How to read the IP address from the header

The "Received:" field is the key. It usually appears multiple times in a header, stacked from newest to oldest. Each line represents one mail server the message passed through. The format varies slightly, but the IP address is almost always in square brackets or after the word "from."

Example header line:

Received: from mail.company.com (mail.company.com [203.0.113.45]) by smtp.gmail.com with SMTP id abc123def456; Mon, 15 Jan 2024 10:30:00 -0800

In this example, 203.0.113.45 is the IP address. The domain name "mail.company.com" tells you the mail server's name; the IP address is its numerical identifier.

If you see multiple "Received:" lines, the topmost one is from the server closest to your inbox. If you are trying to find the original sender's server, you may need to look at the bottom-most "Received:" line, though even that may not be the true origin if the sender used a relay service or forwarding.

What you can and cannot do with an IP address

An IP address is a number assigned to a server on the internet. You can use a free IP lookup tool (search "IP lookup" in any search engine) to see what country and city the server is registered to, and sometimes what organization owns it. This information is public and comes from WHOIS databases.

What you cannot do: You cannot use an IP address to find someone's home address, phone number, or identity. You cannot determine someone's exact location — IP geolocation is accurate to a city or region at best, and often less precise. You cannot hack into a server using its IP address. You cannot prove who sent an email based on the IP address alone, because the sender may have used a public WiFi network, a VPN, a mail forwarding service, or a corporate mail server shared with hundreds of other people.

If the email is part of a fraud, harassment, or threat, report it to the email provider and to law enforcement. Providers and law enforcement have legal tools and authority to investigate further. You do not.

When the IP address does not tell you what you need

If the sender used a major email provider like Gmail, Yahoo, or Outlook, the IP address will belong to that provider's server, not to the sender. You will learn that the email came through Gmail's infrastructure, but not which Gmail user sent it or where they were located.

If the sender used a VPN (a service that masks their real IP address), the IP address you find will belong to the VPN provider, not the sender. If the sender used a corporate mail server, the IP address belongs to the company, and you cannot determine which employee sent it without access to the company's logs.

If the sender used a mail relay or forwarding service, the chain of "Received:" lines may be long and confusing. Each line represents a different server, and tracing back through all of them requires knowledge of how mail servers work and access to server logs that you do not have.

Frequently Asked Questions

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

No. The IP address in an email header belongs to the mail server that processed the message, not the sender's personal device. If they used Gmail, you see Gmail's server IP. If they used their company email, you see the company's server IP. To find a personal device's IP address, you would need a completely different method, and even then, an IP address does not reveal a home address.

Does the IP address prove who sent the email?

No. Many people can send email through the same mail server, and the IP address only tells you which server was used. It does not prove identity. Email addresses themselves are straightforward to forge in the "From:" field, and IP addresses are just as unreliable as proof of authorship.

What should I do if I find a suspicious IP address?

If the email is spam, phishing, or harassment, report it to your email provider using their built-in report button. If it is a threat or fraud, report it to law enforcement. Do not reply to the email or click any links in it. Do not attempt to contact the IP address owner yourself.

Can I use an IP address to find out where someone is right now?

No. IP geolocation shows the registered location of a server, which may be in a different city or country from where the person actually is. Even if the IP address is accurate, it only narrows the location to a city or region, not a street address. And if the sender used a VPN or public WiFi, the IP address does not represent their location at all.

Why do some emails have more "Received:" lines than others?

Each "Received:" line represents one mail server the message passed through. A straightforward email might pass through two or three servers. An email forwarded multiple times, sent through a relay service, or routed through a corporate system might have many more. More lines do not mean the email is suspicious — it just means the message took a longer path.