Where the IP address lives in your email

The IP address of the person who sent you an email is stored in the email's header — a section most email programs hide by default. The header contains routing information that shows 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 is usually the first one listed, because it shows where the message originated.

Different email services store headers in different places, and the process to view them takes about 30 seconds once you know where to look. The IP address itself is a string of four numbers separated by periods, like 192.168.1.1. Not every email will contain a visible IP address — some senders use services that mask or relay their connection — but most will.

Key Takeaways

  • The sender's IP address is in the email header under a line starting with "Received:", and you must enable header view in your email program to see it.
  • Gmail, Outlook, Yahoo, and Apple Mail all have different steps to show headers, but the process takes less than a minute in each one.
  • The first "Received:" line shows the sender's IP; later lines show servers the message bounced through, which are less useful for tracing the original sender.
  • An IP address alone does not identify a person by name, only the internet service provider and approximate location where the message originated.
  • Some senders use email relay services or VPNs that hide their real IP address, so the one you find may belong to a service rather than the sender directly.

How to view headers in Gmail

Open the email you want to examine. Click the three vertical dots in the top right corner of the message (next to the archive and delete buttons). Select "Show original" from the menu that appears. Gmail will open a new tab or window showing the complete email source code, with all headers visible at the top.

Look for the first "Received:" line near the top of the header section. It will contain text like "from mail.example.com (mail.example.com. [203.0.113.45])" — the IP address is the number in brackets. If you see multiple "Received:" lines, the topmost one is the sender's connection; the others are intermediate servers. Copy the IP address and close the tab when you are done.

How to view headers in Outlook (web and desktop)

In Outlook on the web, 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 information will display in a panel or new window. Scroll to the top to find the first "Received:" line and locate the IP address in brackets.

In Outlook desktop (Windows or Mac), right-click the email in your inbox and select "Properties" (Windows) or "Message" then "View Message Details" (Mac). A dialog box will open showing the message headers. The sender's IP address appears in the first "Received:" entry. On Mac, you may need to scroll within the details window to see the full header text.

How to view headers in Yahoo Mail

Open the email you want to check. Click the three dots menu (more actions) in the top right corner of the message. Select "View raw message" or "View full headers" — the exact wording depends on your Yahoo version. A new window will open showing the complete message source with all headers visible.

Find the first "Received:" line at the top of the header section. The sender's IP address will be in square brackets, usually formatted as [###.###.###.###]. Write down or copy the IP address. If the header is very long, use your browser's find function (Ctrl+F or Cmd+F) and search for "Received:" to jump to the relevant lines quickly.

How to view headers in Apple Mail

Open the email in Apple Mail. Go to the menu bar at the top and click "Mail," then select "Preferences." Click the "Viewing" tab. Check the box next to "Show header detail" and close the preferences window. Now when you open any email, the full header will be visible at the top of the message.

Look at the header section above the email body. Find the first "Received:" line — it will show the sender's IP address in brackets. If you have many emails and only want to see headers for one, you can also right-click a specific email and select "View Message Source" on some versions of macOS, which opens the raw message in a separate window.

What the IP address tells you and what it does not

An IP address identifies the internet connection used to send the email, not the person who sent it. You can use the IP address to find the internet service provider (ISP) and the approximate geographic location — usually a city or region, not a street address. Free IP lookup tools like IP2Location or MaxMind will show you this information when you enter the IP address.

The IP address does not give you the sender's name, email account details, or exact physical location. If the sender used a VPN, proxy service, or email relay (like a corporate mail server), the IP address you find belongs to that service, not to the sender's personal device. Law enforcement and email providers can sometimes trace further, but that requires legal process and cooperation from the ISP or service provider.

Why some emails do not show an IP address

Some senders deliberately hide their IP address by routing email through a relay service, VPN, or anonymizing proxy. Others use webmail services that mask the original connection. In these cases, the "Received:" line will show the relay service's IP address instead of the sender's real one, and you will not be able to trace further without additional information.

Spam and phishing emails sometimes have incomplete or falsified headers, though the first "Received:" line is usually harder to fake than the others. If you are investigating a suspicious email, the IP address is one piece of evidence but not conclusive proof. Consider the sender's email address, the message content, and any links or attachments as part of the full picture.

Frequently Asked Questions

Can I find out who sent an email just from the IP address?

No. The IP address shows you the internet service provider and approximate location, but not the person's name or identity. You would need additional information like account records or legal process to connect an IP address to a specific person. The ISP keeps logs that could identify a user, but they only release that information to law enforcement with a warrant.

What if the email header shows multiple IP addresses?

Each "Received:" line represents a server the email passed through. The first one (at the top) is closest to the sender; the last one is closest to you. Use the first IP address, as it is the most likely to be the sender's connection. The others belong to mail servers that relayed the message and are less useful for tracing the original source.

Does viewing the header tell the sender I looked at their email?

No. Viewing the header is a read-only action — it does not send any notification to the sender or change anything about the email. The sender cannot tell whether you opened the message, viewed the header, or did anything else with it, unless the email contains a tracking pixel or link you clicked.

Can I use an IP address to report spam or phishing?

Yes. When you report spam or phishing to your email provider, include the IP address from the header along with the full message. Email providers and law enforcement use this information to investigate and block malicious senders. Most email services have a built-in report button that includes header information automatically.

What is the difference between the sender's IP and the mail server IP?

The sender's IP is the connection used to send the email to the first mail server. The mail server IP is the address of the server that relayed the message onward. The first "Received:" line shows the sender's IP; later lines show mail servers. If the sender used a corporate or webmail service, the "sender's IP" may actually be that service's server, not their personal device.