What you can actually learn from an email's IP address

An email contains routing information that includes the IP address of the server that sent it. You can see this information by reading the email's full headers — the technical metadata that most email programs hide by default. The IP address tells you which mail server processed the message, which can point to a general location (city or region) and the internet provider that owns it.

What an IP address cannot tell you is the sender's exact home address, their name, or their identity with certainty. A person using Gmail from Tokyo and a person using Gmail from New York both route through Google's servers, so you see Google's IP address, not theirs. If someone uses a VPN or a proxy service, you see that service's IP address instead. The IP is a clue, not proof.

Finding an IP address from an email is straightforward. The harder part is understanding what you actually have once you find it, and whether it answers the question you really want answered.

Key Takeaways

  • Email headers contain IP addresses, but they are hidden by default in most email programs — you must switch to "show original" or "view source" mode to see them.
  • The IP address in an email belongs to the mail server that sent it, not necessarily to the person who wrote the message.
  • IP addresses can be traced to a general location and internet provider using free lookup tools, but they do not reveal a sender's identity or home address.
  • Spam and phishing emails often use multiple IP addresses across their headers, and the first one listed is usually the most recent server in the chain.

How to view email headers in common programs

Gmail: Open the email. Click the three dots in the top right corner. Select "Show original." A new window opens with the full header text. Look for lines that start with "Received:" — these contain IP addresses in brackets, like [192.0.2.1].

Outlook (web version): Open the email. Click the three dots in the top right. Select "View message details." The header appears in a panel on the right side. Scroll down to find "Received:" lines with IP addresses.

Outlook (desktop application): Open the email. Go to File > Properties (Windows) or File > Get Info (Mac). Click the "Internet Headers" button. The full header text appears in a new window.

Apple Mail: Open the email. Go to View > Message > All Headers. The headers appear at the top of the message. If you see only partial headers, go back to View and make sure "All Headers" is selected, not "Standard Headers."

Yahoo Mail: Open the email. Click the three dots in the top right. Select "View raw message." The full header appears in a new window or tab.

Reading the headers to find the IP address

Once you have the full headers open, search for the word "Received:" using your browser's find function (Ctrl+F on Windows, Command+F on Mac). You will see multiple "Received:" lines stacked on top of each other. Each one represents a mail server the message passed through.

The IP address you want is usually in the topmost "Received:" line — the one closest to the subject line. It appears inside square brackets, like this: [203.0.113.45]. If the topmost line does not have an IP address in brackets, move down to the next "Received:" line. Some mail servers list the sender's hostname instead of an IP, so you may need to check a few lines.

Ignore lines that say "from localhost" or "from 127.0.0.1" — these are internal server references, not useful IP addresses. If you are looking at a phishing or spam email, the sender may have forged earlier headers, so the IP address closest to the bottom of the header stack is often more reliable than the one at the top.

Using IP lookup tools to find location and provider information

Once you have an IP address, you can enter it into a free IP lookup tool to see what location and internet provider it belongs to. Common tools include MaxMind GeoIP2, IP2Location, and AbuseIPDB. Type the IP address into the search box and the tool returns the country, state or region, city, and the name of the internet service provider or hosting company.

The location data is approximate. An IP address might show a city 20 miles away from where the server actually sits, or it might show only the state. Hosting companies often list their main office location rather than the actual data center location. If the IP belongs to a VPN service or a large cloud provider like Amazon Web Services or Microsoft Azure, the location may be nearly useless — it tells you where the company's office is, not where the user is.

Some tools also show whether an IP address has been reported for spam or abuse. AbuseIPDB and similar services let you see if other people have flagged the IP for sending phishing emails or malware. This can help you decide whether an email is suspicious, but a clean report does not mean the email is safe — spammers rotate through new IP addresses constantly.

What to do if you think an email is phishing or spam

If you are trying to find an IP address because you suspect an email is fraudulent, the IP address alone is rarely enough to prove it. Scammers use legitimate mail servers (Gmail, Yahoo, Outlook) and spoofed sender addresses, so the IP might point to a real company even though the email is fake.

A better approach is to check the sender's actual email address — not the display name, but the address itself. Phishing emails often have a display name like "PayPal Support" but an actual address like "paypal-secure@fakesite.com." Check whether the email address domain matches the company's real domain. You can also hover over links in the email (without clicking) to see where they actually point.

If you have received a phishing email, report it to the company being impersonated. PayPal, Amazon, and most banks have a phishing report email address on their website. Forward the full email (including headers) to that address. Do not click links or download attachments from suspicious emails.

Why headers can be forged and what that means

Email headers can be altered by someone with access to a mail server, which means the IP address you see might not be the real one. Spammers and phishers sometimes forge earlier headers to make an email look like it came from a trusted source. However, the topmost "Received:" line — the one added by the last mail server to handle the message — is much harder to forge because it is added by the server itself, not by the sender.

If you are investigating a serious issue like fraud or harassment, the IP address from headers is a starting point, not proof. Law enforcement and email providers can request more detailed logs from mail servers that show the actual source of a message. If you need that level of investigation, contact your local police department or the FBI's Internet Crime Complaint Center (IC3) rather than relying on header information alone.

Frequently Asked Questions

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

No. The IP address belongs to the mail server, not the person. If someone used Gmail, you see Google's IP address. If they used a VPN, you see the VPN provider's IP. You would need the email provider to check their logs and identify the account holder, which they only do for law enforcement with a warrant.

What if the email header shows multiple IP addresses?

Each "Received:" line represents a different mail server the message passed through. The topmost one is the most recent. If you are investigating spam or phishing, the bottom IP address is often more reliable because it is harder to forge. The middle ones are usually legitimate mail routing and less useful.

Does viewing headers mean the sender knows I looked at them?

No. Viewing headers is a local action on your device. The sender cannot see that you opened the message, let alone that you looked at the headers. Reading headers does not send any signal back to the sender's server.

Can I use an IP address to report spam to my email provider?

Yes. Most email providers accept reports that include the full email header and the IP address. When you report spam in Gmail, Outlook, or Yahoo, the provider automatically captures the header information. If you are reporting to the provider's abuse team directly, including the IP address helps them identify the source more quickly.

What should I do if I find a suspicious IP address in my email?

Check the sender's actual email address first — that is more reliable than the IP. If the address looks fake or the email asks you to click a link or enter a password, report it as phishing to your email provider and the company being impersonated. Do not click links or download attachments. The IP address alone is not enough to take action.