The IP address is usually in the email headers, not the message itself

The sender's IP address is stored in the email headers — the technical information attached to every message that shows routing details, timestamps, and server information. You cannot see these headers by default in Gmail, Outlook, Apple Mail, or most other email clients. You have to open the full headers manually, then search for lines that say "Received:" because those lines contain IP addresses in brackets.

The process takes about two minutes once you know where to look. The IP address you find will belong to the mail server that sent the message, not necessarily the sender's home computer — it could be a company server, a phone, a webmail service, or a VPN. If the sender used Gmail, you will see Google's server IP, not their personal device.

Finding an IP address from an email is informational only. You cannot use it to identify someone by name, locate their home address, or take action against them. If you need to report harassment, fraud, or a crime, forward the full email (with headers) to law enforcement or the platform where the abuse occurred.

Key Takeaways

  • Email headers contain IP addresses in "Received:" lines, but you must manually open full headers in your email client to see them.
  • The IP address belongs to the mail server that sent the message, not necessarily the sender's personal device or location.
  • Different email providers store headers in different places — Gmail, Outlook, and Apple Mail each have their own steps to view them.
  • An IP address alone cannot identify a person or their physical location; it only shows which server processed the email.

How to view full headers in Gmail

Open the email in Gmail and click the three dots (more options) in the top right corner of the message. Select "Show original" from the dropdown menu. A new tab or window will open showing the raw email code, including all headers.

Look for lines that begin with "Received:" — these are stacked from bottom to top, with the oldest at the bottom and the most recent at the top. The first "Received:" line (at the very top) shows the IP address of the server that received the email into Gmail's system. Search the page for "from " followed by brackets containing numbers separated by periods, like [192.0.2.1]. That is an IP address. Write down or copy any IP addresses you find in the "Received:" lines.

How to view full headers in Outlook and Outlook.com

In Outlook desktop, right-click the email and select "Message Options." A window will open showing message details, including internet headers at the bottom. Scroll down to read the full headers and look for "Received:" lines with IP addresses in brackets.

In Outlook.com (webmail), open the email and click the three dots in the top right. Select "View message details" or "View message source" depending on your version. The headers will display in a panel or new window. Search for "Received:" lines and IP addresses in brackets the same way.

How to view full 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 and check the box next to "Show all headers." Close the preferences window.

Now open the email again — the full headers will display above the message body. Look for "Received:" lines and copy any IP addresses you see in brackets. If you do not see headers after enabling this setting, the email may have been deleted or moved; check your archive or trash folder.

How to view full headers on a phone or tablet

Most phone email apps do not display full headers by default. On iPhone, open the email in Apple Mail, scroll to the very top, and tap "Details" if it appears. This shows limited header information but may not include all IP addresses.

On Android, the Gmail app does not show headers in the app itself. Open Gmail in a web browser instead, tap the three dots, and select "Show original" — this works the same as the desktop version. For other Android email apps, check the settings or help documentation, as the process varies by app.

What the IP address tells you and what it does not

An IP address identifies a server or device on the internet, but it does not directly identify a person. If the email came from Gmail, Yahoo, Outlook.com, or another major webmail service, the IP address belongs to that company's server, not the sender. You cannot use it to find the sender's name, home address, or location.

If the email came from a company network or a small mail server, the IP address might belong to that organization's server. You could use an IP lookup tool (search "IP lookup" in any search engine) to see what city or region the server is registered to, but this is often inaccurate and does not pinpoint a person.

Law enforcement and internet service providers can trace an IP address further back to find the account holder, but this requires a warrant and cooperation from the ISP. You cannot do this yourself.

When to report an email instead of tracing it yourself

If you received a threatening, harassing, or fraudulent email, do not spend time tracing the IP address yourself. Forward the full email (with headers) to the platform where it was sent from — Gmail, Yahoo, Outlook, or whoever hosts the account. Include a description of why you are reporting it.

If the email is part of a crime — fraud, extortion, threats, or identity theft — report it to the FBI's Internet Crime Complaint Center (IC3) at ic3.gov or to your local police department. Provide the full email with headers. They have the legal authority and tools to trace the sender further if needed.

Frequently Asked Questions

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

No. An IP address shows which server processed the email, not who owns the email account. If it came from Gmail or Yahoo, the IP belongs to that company. Only the email provider or law enforcement with a warrant can connect an IP address to an account holder's name.

What if there are multiple IP addresses in the headers?

Multiple "Received:" lines show the path the email took through different servers. The topmost "Received:" line is the most recent server to handle it. Each line shows one hop in the email's journey. The first server listed is usually the one most relevant to tracing, but all of them are part of the routing chain.

Does viewing headers tell me if an email is fake or spoofed?

Headers can show signs of spoofing — for example, if the "From:" address does not match the server that actually sent it. However, reading headers requires technical knowledge. If you suspect an email is fake, look at the sender's address carefully, check for spelling errors, and verify by contacting the organization directly through their official website or phone number.

Can I use an IP lookup tool to find someone's location?

IP lookup tools show the city or region where an IP address is registered, but this is often inaccurate and does not identify a person. The location shown might be miles away from the actual server. If you need to locate someone for legal reasons, contact law enforcement instead.

What if the email came from a VPN or proxy?

If the sender used a VPN or proxy service, the IP address in the headers will belong to the VPN provider, not the sender's actual location or device. You will not be able to trace further without the VPN provider's records, which they typically do not share without a legal order.