You can find an IP address in an email's header, but only if you have access to the full message and the sender didn't use a privacy service

An IP address is a string of numbers that identifies a device on the internet — like 192.168.1.1. Email headers contain technical information about where a message came from, including the IP address of the server that sent it. However, this only works if the sender used their actual email account without a privacy layer, and if you know how to read the header data, which most email programs hide by default.

The process differs depending on which email service you use. Gmail, Outlook, Yahoo, and Apple Mail all store headers differently and show them in different places. Even after you find the IP address, you will only learn which internet service provider (ISP) or email service hosted the account — not the sender's name or physical location. If the sender used a VPN, a privacy-focused email service, or an anonymous remailer, the IP address will belong to that service, not to them.

Key Takeaways

  • Email headers contain IP address information, but you must view the full header in your email program — it is hidden by default in most services.
  • The IP address you find usually belongs to the email provider's server, not the sender's home or office computer.
  • If the sender used a VPN, privacy email service, or anonymous remailer, the IP address will not identify them.
  • You can look up an IP address using free tools like WHOIS or IP geolocation services to learn which ISP or company owns it.
  • Finding an IP address from an email is not the same as identifying the sender — it only shows you the server that relayed the message.

How to view the full email header in Gmail

Open the email in Gmail. Click the three dots in the top right corner of the message, then select Show original. A new window will open showing the raw email code, including all headers.

Look for lines that start with Received:. These lines show the path the email took from server to server. The first "Received" line (at the top of the section) is usually the most recent server — often Gmail's own server. Look further down for lines that show from with an IP address in brackets, like [192.0.2.1]. This is closer to the original sender's mail server. Copy the IP address and close the window.

How to view the full email header in Outlook

Open the email. On the Home tab, click Actions, then select View Message Details (or View Message on some versions). A panel will open on the right side showing the message headers.

Scroll down in this panel to find the Internet Headers section. Look for "Received:" lines and scan for IP addresses in brackets. The topmost "Received:" line usually belongs to Outlook's server. Scroll down to find earlier "Received:" lines that may show the sender's mail server IP. Copy the address you find.

How to view the full email header in Apple Mail

Open the email. Go to the View menu at the top and select Message, then All Headers. The full header will now display above the message body.

Search for "Received:" lines and look for IP addresses in square brackets. The first "Received:" line at the top usually shows the most recent server (often Apple's). Scroll down to find earlier "Received:" lines that may show the original sender's mail server. Note the IP address.

How to view the full email header in Yahoo Mail

Open the email. Click the three dots in the top right corner and select View Raw Message. The full header and message body will display in a new window.

Look for "Received:" lines and scan for IP addresses in brackets. The first "Received:" line is usually Yahoo's server. Look further down for earlier "Received:" lines that show the sender's mail server. Copy the IP address you find.

What to do with an IP address once you have it

An IP address by itself does not tell you who sent the email. You can look it up using a free WHOIS database or IP geolocation tool to learn which company or ISP owns it. Search for "WHOIS lookup" or "IP geolocation" in any search engine and paste the address into the tool.

The result will show you the ISP name, the country or region where the IP is registered, and sometimes a city. If the IP belongs to Gmail, Outlook, Yahoo, or another email provider, you will only learn that — not which person used that provider to send the message. If the IP belongs to a VPN service or privacy email provider, you will learn that instead, and the sender's identity remains hidden.

If you need to identify the actual sender, you will need to work with the email provider directly or with law enforcement. Most providers will not release account information without a court order or subpoena.

Why email headers can be misleading

Email headers can be forged or altered in some cases, especially if the sender had direct access to a mail server. However, for most everyday emails, the "Received:" lines are reliable because they are added by each server the message passes through, and each server adds its own timestamp and IP address.

The biggest limitation is that you are seeing the mail server's IP, not the sender's computer. If someone sends an email from Gmail, you will see Gmail's server IP. If they send from their company email, you will see their company's mail server IP. If they use a VPN or privacy service, you will see that service's IP instead. The header does not reveal whether the sender is in New York or Tokyo — only which server processed the message.

When finding an IP address will not help

If the sender used a VPN (virtual private network), the IP address will belong to the VPN provider, not the sender. If they used a privacy-focused email service like ProtonMail or Tutanota, the IP will belong to that service. If they used an anonymous remailer or forwarding service, the IP will point to that service instead.

In these cases, the IP address is a dead end. The sender intentionally hid their location, and the header will not reveal it. If you are trying to track down someone who is harassing you or committing fraud, contact your local police department or the FBI's Internet Crime Complaint Center (IC3) instead of trying to trace the email yourself.

Frequently Asked Questions

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

No. An IP address shows which ISP or company owns the internet connection, not the physical address where it is located. Even if you learn the ISP name, they will not release customer information without a court order. Geolocation tools can sometimes estimate a city or region, but not a street address.

What if the email header shows multiple IP addresses?

Multiple "Received:" lines show the path the email took through different servers. The first line at the top is usually the most recent server (often the email provider's). Lines further down show earlier servers in the chain. The IP closest to the sender is usually several lines down, but it still belongs to their mail server, not their personal device.

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

No. Viewing the header is invisible to the sender. They will not know you opened the message or looked at its technical details. The only way a sender knows you opened an email is if it contains a tracking pixel and you have images enabled, which is rare.

Can I find an IP address from a forwarded email?

Yes, but it will show the IP of whoever forwarded it to you, not the original sender. Each time an email is forwarded, new "Received:" lines are added. The oldest "Received:" lines at the bottom are closest to the original sender, but they still show the mail server IP, not the person's identity.

What should I do if I think an email is a scam or phishing attempt?

Do not click links or read attachments. Report it to your email provider using their built-in report button, and delete it. If it is a phishing attempt targeting your bank or a service you use, contact that organization directly using a phone number or website you know is legitimate. You can also report phishing emails to the Anti-Phishing Working Group at reportphishing.org.