You can find an IP address in an email by reading the full message headers, which most email providers hide by default
Every email carries a trail of technical information called headers that record which servers handled the message on its way to you. The sender's IP address (or the IP address of the server that sent it) usually appears in a field called "Received" near the top of those headers. You won't see this information in the normal message view — you have to ask your email provider to show you the raw headers. The exact steps depend on which email service you use.
Finding an IP address is straightforward once you know where to look. What you do with it afterward is a different question. An IP address alone does not identify a person — it identifies a device or network at a moment in time. A home internet connection, a coffee shop WiFi, a corporate office, or a VPN server could all produce the same IP address on different days. If you are trying to trace who sent an email, the IP address is one piece of information, not proof.
Key Takeaways
- Email headers contain one or more "Received" fields that show IP addresses of servers that handled the message; you must enable the full header view in your email provider to see them.
- Gmail, Outlook, Yahoo, and Apple Mail all hide headers by default but offer a menu option or button to display the original message or full headers.
- The first IP address in the "Received" chain usually belongs to the sender's mail server, not the sender's personal device, so it points to an email provider or organization rather than an individual.
- An IP address can be traced to a general location and internet service provider using free lookup tools, but it does not reveal the name or identity of the person who sent the email.
How to view full 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. Select "Show original" from the dropdown menu. A new tab or window will open showing the complete raw message, including all headers.
Scroll to the top of this raw view. Look for lines that begin with "Received:". These lines are stacked in reverse chronological order — the bottom one is the first server to receive the message, and the top one is the last. Each "Received" line contains an IP address in square brackets, like [192.0.2.1] or [203.0.113.45]. The topmost "Received" line usually shows the IP address of the server that delivered the email to your Gmail inbox.
How to view full headers in Outlook and Microsoft 365
Open the email. Click the three dots (more actions) in the top right. Select "View message details" or "View message source" depending on your version. A panel or new window will display the full headers and message body.
Look for "Received:" fields at the top. The IP addresses appear in square brackets within these lines. If you are using Outlook.com in a browser, you may need to click "View" and then "View message source" instead. The layout varies slightly between the web version and the desktop process, but the headers themselves are the same.
How to view full headers in Yahoo Mail and Apple Mail
In Yahoo Mail, open the email and click the three dots in the top right. Select "View raw message" or "View full headers". The raw message will open in a new window or tab.
In Apple Mail on Mac, open the email and go to the menu bar. Click "Message" and then "Show All Headers". The headers will appear at the top of the message. On iPhone or iPad, this option is not available in the standard Mail app, though third-party email clients may offer it.
What the IP address actually tells you
Once you have identified an IP address from the headers, you can enter it into a free IP lookup tool such as MaxMind GeoIP2, IP2Location, or WhatIsMyIPAddress.com. These tools will return the general geographic location (usually a city or region), the internet service provider or organization that owns the IP address, and sometimes the type of connection (residential, business, data center, VPN).
This information has real limits. The location is approximate — it might be accurate to a city block or might be off by several miles. If the email came through a corporate mail server, the IP address points to the company's office, not to the person who sent it. If the sender used a VPN, the IP address belongs to the VPN provider, not the sender. If the email came from a webmail service like Gmail or Yahoo, the IP address belongs to Google or Yahoo's servers, not the sender's home or device.
Why headers can have multiple IP addresses
An email often passes through several servers before reaching your inbox. Each server that handles the message adds its own "Received" line to the headers. If you see five "Received" lines, the email touched five different servers. Reading them from bottom to top shows you the path the message took.
The bottom "Received" line is closest to the original sender. If the sender used Gmail, that line will show a Gmail server IP. If they used their company's mail system, it will show the company's mail server. The lines above it show intermediate servers — perhaps a spam filter, a relay service, or your own email provider's receiving server. The top line is the final delivery to your mailbox.
When an IP address might be useful
If you receive a phishing email or a message claiming to be from your bank, the IP address can confirm whether it actually came from the bank's mail servers. You can look up the bank's known IP addresses or domain and compare them to what the headers show. A mismatch is a red flag.
If you receive threatening or harassing emails, you can share the full headers (not just the IP address) with law enforcement or your email provider's abuse team. They have tools and legal authority to trace an IP address further than a public lookup tool can. Your email provider can also block future messages from that IP address or take action against the account that sent it.
For personal disputes — a disagreement with someone online, a question about where a message came from — an IP address alone is not proof of identity and usually will not resolve the question. It is one data point among many.
Frequently Asked Questions
Can I find out someone's home address or name from their IP address?
No. A public IP lookup tool shows only the general location and internet service provider. Your ISP has records linking your home address to your IP address, but they do not share this information publicly. Only law enforcement with a warrant can compel an ISP to reveal that connection.
What if the email headers show multiple IP addresses?
Each IP address represents a different server the message passed through. The bottom "Received" line is closest to the sender; the top line is closest to your inbox. Trace from bottom to top to follow the message's path. The first IP is usually the most relevant to finding the sender's mail provider.
Does a VPN hide the IP address in email headers?
A VPN hides your personal device's IP address, but the email headers will still show the VPN provider's server IP address. The headers will not reveal your real IP or location, but they will show that a VPN was used (usually because the IP belongs to a known VPN company).
Can I report spam or phishing using the IP address?
Yes. Forward the full email with headers intact to your email provider's abuse team or to the Anti-Phishing Working Group at phishing-report@apwg.org. Include the headers so they can see the full path the message took. Do not share your personal information — just the headers and the message itself.
What if the sender used a Gmail or Yahoo account?
The headers will show Gmail or Yahoo's mail server IP address, not the sender's personal device. You will learn that the message came from Gmail or Yahoo, and you will see the general location of that server, but you will not learn the sender's identity or location. Only Gmail or Yahoo can connect an account to a person, and they require legal process to do so.