Where the IP address lives in your email
Every email carries hidden information called headers — a block of technical details that shows the path the message took from sender to your inbox. The 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 tell you which mail servers handled the message and, in some cases, the computer or network the sender used. Not every email reveals a usable IP address — some mail services strip that information away for privacy — but most do. The IP address alone does not tell you a person's name or street address, but it does tell you which internet service provider or company owned that connection at the time the email was sent.
Key Takeaways
- Email headers contain the IP address, but you must manually display them in your email program — they are hidden by default.
- The IP address usually appears in a "Received:" or "X-Originating-IP" line near the top of the header block.
- Different email programs have different menus to show headers: Gmail uses "Show original", Outlook uses "Message" then "Actions" then "View message details", and Apple Mail uses the gear icon.
- Once you have the IP address, you can enter it into a free IP lookup tool to see what company or region owned that connection.
- Some senders use VPNs, proxies, or mail services that hide the real IP address, so the address you find may not belong to the person who wrote the email.
How to view headers in Gmail
Open the email you want to examine. Click the three-dot menu icon in the top right corner of the message. From the dropdown, select "Show original". A new tab or window will open showing the raw email code, with all headers visible at the top.
Scroll through the headers and look for lines beginning with "Received:". The first "Received:" line (at the very top) usually shows the most recent server. Look for a pattern like "from [123.45.67.89]" or "from mail.example.com [123.45.67.89]". The numbers in brackets are the IP address. Copy that string of numbers and save it — you will need it for the next step.
How to view headers in Outlook (web and desktop)
For Outlook on the web: Open the email. Click the three-dot menu at the top right. Select "View message details" or "View message source". The headers will display in a panel or new window. Search for "Received:" lines and extract the IP address the same way as Gmail.
For Outlook desktop: Right-click the email in your inbox and select "Properties" (Windows) or "Get Info" (Mac). A window will open showing the full headers. On Windows, you may need to click "Message" in the menu bar, then "Actions", then "View Message Details" instead. Find the "Received:" lines and copy the IP address.
How to view headers in Apple Mail
Open the email. Click the gear icon in the top right corner of the message. Select "View All Headers" from the dropdown menu. The full header block will now display above the message body. Look for "Received:" lines and extract the IP address as described above.
If you do not see a gear icon, try clicking "Details" or looking in the "Message" menu at the top of your screen. Different versions of Apple Mail place this option in slightly different locations, but "View All Headers" or "Show All Headers" is always the correct choice.
How to look up what the IP address belongs to
Once you have the IP address, visit a free IP lookup tool such as WhatIsMyIPAddress.com, IPQualityScore.com, or MaxMind's GeoIP2 demo. Paste the IP address into the search box and click the lookup button. The tool will return information about the company or internet service provider that owned that address, the country and city where it was registered, and sometimes the type of connection (residential, business, data center).
This information tells you where the connection was based, but it does not identify the individual person who sent the email. A residential IP address might belong to one household; a business IP address might belong to a company with hundreds of employees. If the IP address belongs to a major email provider like Gmail, Yahoo, or Outlook, the lookup will show that company name instead of the sender's actual location.
Why some emails do not show a usable IP address
Many email services deliberately remove or mask the sender's real IP address for privacy reasons. If you see only the mail service's own IP address (like Gmail's servers) and no "X-Originating-IP" line, the sender's actual location is hidden. This is common with free email accounts and corporate email systems.
Some senders also use a VPN (virtual private network) or proxy server, which masks their real IP address and shows the VPN or proxy address instead. In these cases, the IP address you find belongs to the VPN or proxy company, not the sender. There is no way to see through a VPN or proxy using only the email headers.
What to do if the headers look confusing
Email headers are dense and technical. If you open the raw headers and see a wall of text, focus only on the "Received:" lines at the very top. Ignore everything else. The first "Received:" line is the most recent; each line below it represents an earlier step in the email's journey. You usually only need the IP address from the first or second "Received:" line.
If you cannot find any "Received:" lines or IP addresses at all, the email service has stripped them away. This is not uncommon with certain corporate systems or privacy-focused email providers. In that case, there is no IP address to find in the headers, and you would need to contact the email service directly if you need information about the sender.
Frequently Asked Questions
Can I find out someone's home address from their IP address?
No. An IP address tells you the internet service provider and the general region (city or country), but not the street address. Even if you know someone's ISP, that company will not release customer information to the public. Law enforcement can request that information with a warrant, but you cannot.
What if the IP address is from a different country than where the sender said they were?
It could mean the sender was traveling, using a VPN, or using a mail service that routes through servers in other countries. It could also mean the email is not from who it claims to be. Compare the IP location to what you know about the sender, but do not assume the IP address is wrong — it is just one piece of information.
Do I need special software to view email headers?
No. Every standard email program — Gmail, Outlook, Apple Mail, Yahoo Mail — has a built-in option to show headers. You do not need to read anything. The option is usually in a menu marked with three dots or in the "View" or "Message" menu.
If I find the IP address, can I report it to the police?
You can report a suspicious or threatening email to law enforcement, and you can include the IP address and headers as evidence. The police or FBI can then contact the internet service provider with a warrant to learn who owned that IP address at the time the email was sent. You cannot do that yourself.
Will the sender know I looked at their IP address?
No. Viewing headers is a local action on your computer — it does not send any signal back to the sender or their mail server. The sender will not be notified that you examined the email's technical details.