Where the IP address lives in your email

Every email carries hidden information called headers that record the path the message took from sender to your inbox. The IP address you are looking for sits in those headers, usually in a field labeled "Received" or "X-Originating-IP". Your email program does not show headers by default — you have to ask for them.

The headers appear as a block of technical text that looks like gibberish at first glance. Most of it you can ignore. You are hunting for a string of four numbers separated by periods, like 192.168.1.1 or 203.45.67.89. That is the IP address.

The location of headers and how to view them changes depending on whether you use Gmail, Outlook, Apple Mail, or another program. The steps below cover the most common platforms.

Key Takeaways

  • Email headers contain the IP address, but you must manually request to view them — they are hidden by default in most email programs.
  • The IP address usually appears in a "Received" or "X-Originating-IP" field and looks like four numbers separated by periods.
  • Gmail, Outlook, and Apple Mail each have different menus for displaying headers, but the process takes fewer than five clicks in any of them.
  • Once you have the IP address, you can enter it into a free IP lookup tool to see the general geographic location and internet service provider associated with it.
  • An IP address shows where an email was sent from, but it does not prove who sent it — the sender could be using a VPN, proxy, or shared network.

Viewing headers in Gmail

Open the email you want to examine. Click the three vertical dots (the menu icon) in the top right corner of the email. A dropdown menu appears. Select "Show original" from the list.

A new window or tab opens displaying the full email source code, including all headers. The headers appear at the top of this view. Scan through them looking for lines that start with "Received:" — there are usually several of them stacked together. The first "Received:" line (the topmost one) typically contains the most recent relay point, while the last one often shows the originating server.

Look for "X-Originating-IP" as well — if present, this field often contains the sender's IP address directly. Copy the IP address string and paste it into a separate document or IP lookup tool for the next step.

Viewing headers in Outlook (web and desktop)

For Outlook on the web: Open the email. Click the three dots menu at the top right. Select "View message details" or "View message source" depending on your version. The headers display in a panel or new window. Search for "Received:" or "X-Originating-IP" using your browser's find function (Ctrl+F on Windows, Cmd+F on Mac).

For Outlook desktop process: Open the email. Go to the File menu and select "Properties" (Windows) or "Get Info" (Mac). A dialog box opens. Look for a section labeled "Internet Headers" or "Message Headers" and click to expand it. The full header text appears in a text box below. Use your browser or text editor's find function to locate the IP address.

Viewing headers in Apple Mail

Open the email. Go to the View menu at the top of your screen. Select "Message" and then "All Headers" from the submenu. The headers now display above the email body in a condensed format.

If the headers appear too compressed to read, you can also right-click the email in your inbox and select "View Message Source" or "View Raw Message" depending on your macOS version. This opens the full source code in a new window, making it easier to scan for "Received:" and "X-Originating-IP" fields.

Reading the Received field to find the IP address

The "Received:" field is dense with information. A typical line looks like this:

Received: from mail.example.com (mail.example.com [203.45.67.89]) by smtp.gmail.com with SMTP id abc123def456

The IP address appears in square brackets. In the example above, 203.45.67.89 is the IP address. If you see multiple "Received:" lines, the bottom one usually represents the original sending server, while the top ones show each relay point the email passed through on its way to you.

Some emails show "X-Originating-IP" instead, which is simpler — the IP address appears directly after the colon. Copy whichever IP address you find and move to the next step.

Using an IP lookup tool to find location and provider information

Once you have the IP address, paste it into a free IP lookup tool. Common options include IP2Location, MaxMind GeoIP2, or AbuseIPDB. Type or paste the IP address into the search box and click the lookup button.

The tool returns information about the internet service provider (ISP), the country and city where the IP is registered, and sometimes the approximate latitude and longitude. This gives you a general sense of where the email originated, though the precision varies — city-level accuracy is common, but pinpointing an exact address is not possible from an IP alone.

Keep in mind that this location shows where the email relay server is located, not necessarily where the person sending the email was sitting. A sender using a VPN, proxy service, or corporate mail server will show the location of that intermediary, not their actual location.

What the IP address can and cannot tell you

An IP address is useful for understanding the general origin point of an email, but it has real limits. The IP shows you the server that sent the message to your mail provider, which could be the sender's personal computer, their company's mail server, a webmail service, or a VPN endpoint. Without additional information — like server logs that only the ISP or email provider can access — you cannot definitively prove who was behind the keyboard.

Scammers and spammers often use services that mask their real IP address. If you are investigating a suspicious email, the IP address is one piece of evidence, not proof. Law enforcement and email providers have access to deeper logs that you do not, so if the email represents fraud or a crime, report it to the appropriate authority rather than relying on the IP address alone.

Frequently Asked Questions

Can I find an IP address from an email on my phone?

Most phone email apps do not display headers easily. Gmail's mobile app has a "Show original" option similar to the web version. For other apps, you may need to forward the email to a computer or access your email through a web browser instead of the app to view headers.

What if I do not see an IP address in the headers?

Some emails, especially those from large providers like Gmail or Outlook, may not display the originating IP in the headers you can see. The sender's actual IP may be stripped out for privacy reasons, or the email may have been relayed through multiple servers that do not log it. In this case, you have reached the limit of what headers can show you.

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

No. Viewing headers is a read-only action — it does not send any notification to the sender or change anything about the email. You are straightforward looking at information that was already there.

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

Yes. If you report the email to your email provider or to organizations like the Anti-Phishing Working Group, include the IP address along with the full headers. These organizations use IP information to identify patterns and block malicious senders, though they also have access to server logs you cannot see.

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

The sender's IP is where the email originated. The relay server IP is where it passed through on the way to you. Multiple "Received:" lines show each relay point. The bottom line usually shows the closest to the original sender, but corporate networks and VPNs complicate this — the "original" server you see may still not be the sender's actual computer.