Where the IP address actually lives in your email

The IP address of the person who sent you an email is stored in the email's header — a section of technical information that most email programs hide by default. The header contains routing details that show every server the message passed through on its way to your inbox. The sender's IP address appears in a line that starts with "Received:" and usually shows up near the top of the header, though there may be multiple "Received:" lines if the message bounced between servers.

You cannot see this information by opening the email normally. You have to tell your email program to show you the full header, which is a different process depending on whether you use Gmail, Outlook, Apple Mail, or another service. Once you can see the header, the IP address is readable text — you do not need special tools to find it, only to know where to look.

Key Takeaways

  • The sender's IP address is in the email header under a "Received:" line, but email programs hide the header by default.
  • Gmail, Outlook, Apple Mail, and other services each have a different menu option to show the full header.
  • The first "Received:" line closest to the top usually shows the sender's IP, while lower lines show servers the email passed through.
  • An IP address alone does not identify a person — it identifies a device or network, and may belong to a company, school, or internet provider rather than an individual.

How to view the full header 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 menu. Gmail will open a new tab or window showing the complete header and message body as raw text.

Look for the topmost "Received:" line. 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 one at the very top is usually the sender's IP, and the ones below it show servers the message passed through after that.

How to view the full header in Outlook (web and desktop)

In Outlook on the web, open the email and click the three dots in the top right. Select "View message details" or "View message source" depending on your version. A panel will open on the right side showing the header information.

In Outlook desktop (Windows or Mac), right-click the email in your inbox and select "Properties" (Windows) or "View Full Header" (Mac). A window will open with the complete header. Search for "Received:" lines the same way you would in Gmail — the topmost one usually contains the sender's IP address.

How to view the full header in Apple Mail

Open the email. Go to the menu bar and click "View," then select "Message" and "All Headers." The header will now display above the message body in your mail window. You can also use the keyboard shortcut Control+Option+H (Mac) to toggle headers on and off.

Scroll to the top of the header section and look for the first "Received:" line. The sender's IP address will be in brackets, like [203.0.113.42]. If you see multiple "Received:" lines, the topmost one is the most recent and usually the sender's connection point.

Reading the IP address from the header

Once you can see the full header, find the "Received:" line at the very top. It will contain text like "from [IP address]" or "from hostname [IP address]". The IP address is always four numbers separated by dots, ranging from 0 to 255 in each section — for example, 198.51.100.5 or 2001:db8::1 (the second format is IPv6, a newer standard).

If the header shows a hostname instead of an IP address in the first "Received:" line, look for a second "Received:" line below it. That line often contains the actual IP address in brackets. The header can be confusing because email passes through multiple servers, and each one adds its own "Received:" line. The topmost line is the most recent stop, which is usually closest to the sender's actual location.

What an IP address tells you and what it does not

An IP address identifies a device or network connection at a specific moment, not a person. If the email came from a company email account, the IP belongs to the company's mail server, not to the individual who sent it. If it came from Gmail or Outlook, the IP belongs to Google or Microsoft's servers, not the sender. Even if the IP belongs to a home internet connection, it identifies the internet service provider's equipment in a neighborhood, not a specific address or person.

You can search an IP address using a free tool like IP Location or MaxMind GeoIP to see what city or country it is registered to, and which internet provider owns it. This information is public and does not require special access. However, the internet provider will not release the customer's name or address without a court order, even if you contact them directly.

When the IP address might be hidden or misleading

Some email services and security tools deliberately hide the sender's real IP address. If an email was sent through a VPN (virtual private network), a proxy server, or an anonymity service, the IP address you see in the header belongs to that service, not to the sender's actual location. Similarly, if someone uses Tor or another privacy tool, the IP will not point to them.

Forwarded emails complicate the picture further. If someone received an email and then forwarded it to you, the header will show the IP of the person who forwarded it, not the original sender. The original sender's IP may appear in a lower "Received:" line, but it is not always clear which line belongs to which person. If you need to trace an email through multiple forwards, you may need to ask each person in the chain about their connection.

Frequently Asked Questions

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

No. An IP address shows a general geographic region and internet provider, but not a street address. The internet provider has that information, but will not release it without a court order or law enforcement request. If you are concerned about harassment or threats, contact local police rather than trying to trace the email yourself.

What if the header shows multiple IP addresses?

Each "Received:" line represents one server the email passed through. The topmost line is the most recent and usually the sender's connection. Lines below it show earlier stops — often the sender's mail server, then intermediate servers, then your mail provider. The sender's actual IP is almost always in the first or second "Received:" line from the top.

Does viewing the header tell the sender that I looked at it?

No. Viewing the header is a local action on your device — it does not send any signal back to the sender or their server. You can view headers without the sender knowing.

What if I see "Received: from localhost" or no IP address at all?

This usually means the email was sent from a local network or a mail server that does not log IP addresses in the header. Some corporate or school email systems strip out IP information for privacy. In these cases, you cannot recover the sender's IP from the header alone.

Is the IP address in the header always accurate?

The IP address is accurate for the server that sent the message at that moment, but it does not necessarily identify the person who composed it. Someone could have used another person's email account, or the account could have been compromised. The IP shows where the message came from technically, not who wrote it.