Where the IP address lives in your email
Every email carries hidden information in its headers — a block of technical details that travels with the message but stays invisible in your inbox. The sender's IP address is buried in those headers, usually in a line that starts with "Received:" or "X-Originating-IP". You cannot see headers by default; you have to ask your email program to show them.
The headers exist because email servers need to know where a message came from and where it should go. Each server that touches your email adds its own "Received" line, creating a chain. The first "Received" line in that chain — the one closest to the top when you view headers — typically contains the IP address of the computer that originally sent the message.
Different email providers store and display headers differently. Gmail, Outlook, Yahoo, and Apple Mail all have their own steps. The IP address format looks like four numbers separated by dots: 192.168.1.1. If you see that pattern in the headers, you have found what you are looking for.
Key Takeaways
- Email headers are hidden by default in Gmail, Outlook, Yahoo, and Apple Mail, but each program has a menu option to reveal them.
- The sender's IP address usually appears in the topmost "Received:" line or in a line labeled "X-Originating-IP".
- The IP address looks like four numbers separated by dots, such as 203.45.67.89.
- Once you have the IP address, you can use a free IP lookup tool to see what city or organization it belongs to, though the result may not pinpoint an individual person.
How to view 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 message. A dropdown menu appears. Select "Show original" from that menu.
A new window or tab opens showing the raw email, including all headers at the top. The headers are dense and hard to read at first. Look for lines that begin with "Received:" — these are stacked on top of each other. The very first "Received:" line (the one at the top of the stack) is the one closest to the sender. Scan that line for a pattern like from [IP address] or look for the word "client" followed by an IP address in brackets.
If you do not see an IP address in the first "Received:" line, scroll down through the other "Received:" lines. Sometimes the sender's IP appears in the second or third line instead. You can also use your browser's Find function (Ctrl+F on Windows, Cmd+F on Mac) and search for "Received: from" to jump between lines quickly.
How to view headers in Outlook and Outlook.com
In Outlook on the desktop, open the email and click "File" in the top menu. Select "Properties" from the dropdown. A window opens showing message details. At the bottom of that window, you will see a large text box labeled "Internet Headers" or "Message Headers". The full headers are displayed there. Look for the topmost "Received:" line and scan it for an IP address in brackets.
In Outlook.com (the web version), open the email and click the three dots menu in the top right. Select "View message details" or "View message source" depending on your version. The headers appear in a panel on the right side or in a new window. Again, focus on the first "Received:" line at the top of the headers.
How to view headers in Yahoo Mail and Apple Mail
In Yahoo Mail, open the email and click the three dots menu. Select "View raw message" or "View full headers". The headers display in a new window or panel. The sender's IP address is in the topmost "Received:" line.
In Apple Mail on Mac, open the email. Go to the "View" menu at the top of the screen and select "Message" then "All Headers". The headers now display at the top of the email. In Apple Mail on iPhone or iPad, open the email, tap "Details" at the top, then scroll down to see the headers.
What to do once you have the IP address
Once you have copied the IP address, you can paste it into a free IP lookup tool to see what location and organization it belongs to. Common tools include IP2Location, MaxMind, and WhatIsMyIPAddress. These tools show you the city, country, and sometimes the internet service provider (ISP) that owns that IP address.
Keep in mind that an IP address points to a location and an organization, not necessarily to a specific person. A business IP might belong to a company's office building. A residential IP might belong to an ISP serving thousands of customers in a region. If the email came from a free email service like Gmail or Yahoo, the IP address often belongs to Google or Yahoo's servers, not to the person who sent it — those services hide the sender's real IP for privacy.
If you are investigating a suspicious or fraudulent email, the IP address is one piece of information. Combine it with other details like the sender's email address, the time the email was sent, and any links or attachments in the message. If you suspect fraud or harassment, report the email to your email provider and consider contacting local law enforcement.
Why headers sometimes look confusing
Email headers are written in a technical format designed for computers, not people. You will see abbreviations like "SMTP" (the protocol that sends email), "from", "to", "date", and "subject". Many lines repeat or seem to say similar things. This happens because the email passed through multiple servers on its way to you, and each server added its own "Received:" line.
The order matters: the first "Received:" line is closest to the sender, and the last "Received:" line is closest to you. If you are trying to trace where an email really came from, start at the top and work down. The topmost line is your best bet for finding the original sender's IP address.
Frequently Asked Questions
Can I see the sender's real IP if they used Gmail or Outlook to send the email?
Usually not. Gmail, Outlook, Yahoo, and other major email services hide the sender's real IP address for privacy. The IP you find in the headers belongs to Google, Microsoft, or Yahoo's servers instead. If the sender used a corporate email system or a smaller mail server, you are more likely to see their actual IP address.
What if I cannot find an IP address in the headers?
Some emails do not contain an IP address in the headers, especially if they came from a major email provider. Look for lines labeled "X-Originating-IP" or "X-Sender-IP" as alternatives. If those do not exist, the email provider may have stripped that information for privacy reasons.
Does an IP address tell me who sent the email?
An IP address tells you the location and organization associated with that address, but not the person's name or identity. It is one clue among many. If you need to identify someone, you would need additional information like email headers, email content, or help from law enforcement.
Is it legal to look up someone's IP address from their email?
Looking up an IP address from an email you received is not illegal. The sender included that information in the message they sent you. However, using that information to harass, threaten, or harm someone is illegal. If you are investigating fraud or a crime, contact your local police or the FBI's Internet Crime Complaint Center.
What if the IP address is from a VPN or proxy service?
If the sender used a VPN (virtual private network) or proxy service, the IP address you find belongs to that service, not to the sender's actual location. VPNs and proxies hide the real IP address on purpose. In that case, the IP lookup will show you where the VPN server is located, not where the person is.