You cannot reliably get an IP address from an email just by opening it

An email message itself does not contain the sender's IP address in a way you can see by opening the message. The IP address — the unique number that identifies a device on the internet — lives in the email's header information, which most email programs hide by default. Even when you view the full header, the IP address shown is usually your mail server's address, not the sender's, because the message bounced through multiple servers to reach you.

If you need to trace where an email actually came from, you have two realistic paths: checking the full header yourself (which works sometimes but requires interpretation), or reporting the message to your email provider, who has better tools and access to server logs. The second option is more reliable, especially if you suspect fraud or harassment.

Key Takeaways

  • Email headers contain routing information, but the IP address shown is usually your mail server's, not the sender's original address.
  • You can view full headers in Gmail, Outlook, and most other providers, but reading them requires understanding email server terminology.
  • The "Received" lines in a header show the path the email took, with the bottom line closest to the original sender — but even that may not be their true IP.
  • Your email provider's abuse team can trace an email more accurately than you can, and they have access to server logs you do not.
  • If you suspect fraud, phishing, or harassment, reporting to your provider is faster and more effective than trying to trace the IP yourself.

How to view the full email header in common providers

Most email programs show you only the sender's name and address by default. To see the header — the technical information about how the message traveled — you need to find the "show original" or "view message source" option.

In Gmail, open the email and click the three dots in the top right corner. Select "Show original." A new window opens with all the header information. In Outlook (both web and desktop), right-click the message and choose "View message details" or "View message source." In Apple Mail, go to the View menu and select "Message" then "All Headers." In Thunderbird, right-click the message and choose "View Message Source."

Once you have the full header open, you will see dozens of lines. Most of them are not useful for finding an IP address. The lines that matter start with "Received:" — these show the path the email took from server to server. The bottom "Received:" line (the one closest to the beginning of the header) is closest to the original sender, but it still may not show their actual IP address.

What the header actually tells you

The "Received:" lines in an email header show which mail servers handled the message, in reverse order. Each line includes a timestamp and sometimes an IP address in square brackets, like [192.0.2.1]. The problem is that this IP usually belongs to the mail server that sent the message to the next server, not to the person who wrote it.

If someone sent you an email from Gmail, the IP address you see is Gmail's server, not their computer. If they sent it from their company email, you see the company's mail server. The only time you might see something closer to the sender's actual IP is if they sent the email directly from their own mail server — which almost nobody does anymore.

The "From:" line in the header shows the sender's email address, which is what you should focus on if you are trying to verify who sent the message. If the "From:" address does not match the sender's real email address, or if it looks like a misspelling of a legitimate address, that is a sign of phishing or spoofing.

When tracing an IP address yourself makes sense

Trying to extract an IP from an email header is worth doing only in specific situations. If you received a suspicious email claiming to be from your bank, your email provider, or a service you use, checking the header can confirm whether it actually came from them. Legitimate companies send email from their own domains and mail servers — if the header shows a different server, the message is likely fake.

You can also use an IP lookup tool (search "IP address lookup" in any search engine) to see what location and organization an IP address belongs to. If the header shows an IP from a country you have never done business with, or from a residential internet provider instead of a company server, that is a warning sign.

However, this method has real limits. Spammers and phishers use compromised mail servers, VPNs, and proxy services specifically to hide their real location. An IP address that looks legitimate might still be fake. And if the email came through a major provider like Gmail or Outlook, you are almost certainly looking at their server's IP, not the sender's.

Why reporting to your email provider is more effective

Your email provider — Gmail, Outlook, Yahoo, or whoever hosts your account — has access to information you do not. They can see the full path the email took through their own servers, the exact time it arrived, and whether the sender's account is real or compromised. They also have records of other emails from the same sender and can spot patterns of fraud or spam.

When you report a message as phishing or spam, your provider's abuse team investigates it. If they confirm it is fraudulent, they can block the sender, warn other users, and sometimes work with law enforcement. They can also tell you whether the email actually came from the organization it claimed to be from.

To report an email in Gmail, click the three dots and select "Report phishing" or "Report spam." In Outlook, click the three dots and choose "Report" then "Phishing" or "Junk." In Apple Mail, select the message and go to Mail menu, then "Junk Mail" or "Report Junk." Your provider will handle the rest.

What to do if you think an email is fraudulent

If an email asks you to click a link, read a file, or enter your password, do not do it — even if it looks like it came from someone you trust. Legitimate companies never ask for passwords by email. Instead, go directly to the company's website by typing the address yourself (not by clicking a link in the email) and log in to check your account.

Report the message to your email provider using the steps above. If the email claims to be from your bank, your email provider, or a payment service, you can also report it directly to that organization. Most companies have a fraud or phishing email address listed on their website.

If you have already clicked a link or entered information, change your password when ready and contact the company whose account may be at risk. If the email involved money or payment information, contact your bank or credit card company.

Frequently Asked Questions

Can I see someone's IP address just by them sending me an email?

Not reliably. The IP address in the header usually belongs to their mail server, not their computer. Even if you see an IP address, it is often your own mail server's address or an intermediate server, not the sender's actual device.

What does the "Received:" line actually mean?

Each "Received:" line shows one step in the email's journey from server to server. The bottom line is closest to the original sender, but it still usually shows a mail server's IP, not a person's computer. Reading these lines requires understanding email server terminology, which is why your provider's abuse team is better equipped to interpret them.

If I find an IP address in the header, can I find out who it belongs to?

You can use an IP lookup tool to see what organization and country the IP belongs to, but this tells you about the mail server, not the person who sent the email. Spammers and phishers often use compromised servers or VPNs anyway, so the location may be misleading.

Is it safe to click links in emails to verify the sender?

No. Phishing emails often include links that look legitimate but go to fake websites designed to steal your information. If you need to verify an email, go directly to the company's website by typing the address yourself, or call their phone number from their official website.

What should I do if I think someone is harassing me by email?

Report the messages to your email provider and block the sender. If the harassment is severe or threatening, save copies of the emails and contact local law enforcement. Your email provider can also help you understand whether the sender is using a fake account or a compromised real account.