What you can actually learn from an email's IP address
An email's IP address tells you the server that sent the message, not necessarily who wrote it. That server could belong to Gmail, Outlook, your company, a spammer, or someone using a VPN or proxy — so the IP alone rarely identifies a person. What it does tell you is whether an email came from where it claims to come from, and sometimes which country or region the server sits in.
If you received a suspicious email claiming to be from your bank, the IP address can show whether it actually came from your bank's servers or from somewhere else entirely. If someone is harassing you online, the IP might help you or law enforcement narrow down whether they're using a residential connection, a corporate network, or an anonymizing service. But finding the IP is just the first step — what you do with it depends on why you're looking.
Key Takeaways
- Email headers contain the IP address of the server that sent the message, but you have to view the full headers — the normal preview hides them.
- The most recent "Received" line in the headers shows the last server the email passed through, which is usually the sender's mail server.
- An IP address alone cannot tell you a person's name or home address, and many legitimate emails come from shared servers used by millions of people.
- If you need to report harassment or fraud, save the full email headers and give them to law enforcement or your email provider rather than trying to trace the IP yourself.
How to view full email headers in Gmail
Gmail hides the technical details by default. Open the email you want to check, click the three dots in the top right corner, and select "Show original." A new window opens with the complete message source, including all the headers.
Look for lines that start with "Received:" — there will usually be several, stacked from bottom to top in reverse chronological order. The bottom one shows where the email started; the top one shows where it arrived at Gmail's servers. The IP address appears in square brackets, like [192.0.2.1] or [2001:db8::1]. Copy the IP from the topmost "Received:" line if you want to know what server sent it most recently, or from the bottom line if you want to know where it originated.
How to view full email headers in Outlook and Outlook.com
In Outlook on the web, open the email and click the three dots menu, then select "View message details" or "View message source." In the Outlook desktop app, right-click the email, choose "Message" or "Properties," and look for a button labeled "Internet Headers" or "Message Source."
The headers appear in a separate window. Again, search for "Received:" lines and look for IP addresses in square brackets. Outlook sometimes labels the sender's IP more clearly than Gmail does, but the principle is the same — the topmost "Received:" line is the most recent hop, and the bottom one is the origin point.
How to view full email headers on iPhone, Android, and other mail apps
On iPhone Mail, open the email, tap "Details" at the top, then scroll down and tap "Show all headers." On Android Gmail, tap the three dots and select "Show original." On Apple Mail (Mac), open the email and go to View > Message > All Headers.
Third-party apps like Thunderbird, ProtonMail, and others vary widely. Check the app's settings or help menu for "view headers," "view source," or "message details." If the option is not obvious, look in the app's preferences under Privacy or Security — some apps hide headers by default for security reasons and require you to enable them.
What the IP address actually tells you
Once you have the IP, you can look it up using a free tool like WHOIS lookup (whois.com or similar) or IP geolocation tools (maxmind.com, ip-api.com). These will tell you the country, region, and sometimes the city where the server is registered, and which organization owns it.
If the email claims to be from your employer but the IP belongs to a data center in Russia, that's a red flag. If it claims to be from PayPal but the IP belongs to a residential internet provider in Nigeria, it's almost certainly fraud. But if the IP belongs to Google's data centers and the email address is someone@gmail.com, that tells you nothing — millions of legitimate Gmail users send from those same servers every day.
An IP address also does not reveal a person's home address, name, or identity. It identifies a server. That server might be shared by thousands of people, or it might be behind a VPN or proxy that masks the real location. Law enforcement can sometimes subpoena an internet service provider to learn who was assigned that IP at a specific time, but you cannot do that yourself.
When to report the email instead of tracing it yourself
If the email is phishing (pretending to be a bank or service asking you to click a link), report it to the real organization and to your email provider. Gmail has a "Report phishing" button; Outlook has "Report junk" or "Report phishing." These reports go to security teams that have tools and legal authority you do not have.
If the email is harassment or threats, save the full headers and the message itself, then report it to law enforcement if you feel unsafe. Include the headers in your report — they are evidence. Do not try to contact the sender or visit any links in the email. Do not post the IP address publicly or try to "hack back" — that is illegal and will make your situation worse.
If you suspect your own account has been compromised, change your password when ready, turn on two-factor authentication, and review your account activity. Check the "Last account activity" section in Gmail settings or the "Recent activity" section in Outlook to see where your account has been accessed from.
Why some emails have no usable IP address
Emails sent through a VPN, proxy, or anonymizing service will show the IP of that service, not the sender's real location. Emails from corporate networks might show only the company's outgoing mail server, not the individual's computer. Forwarded emails and mailing lists can add extra "Received:" lines that make it harder to find the original source.
Some email providers, like ProtonMail, deliberately strip or obscure IP information for privacy reasons. If you receive an email from ProtonMail and look at the headers, you will see ProtonMail's servers, not the sender's location. This is by design — it protects the sender's privacy, which is why some people use these services.
Frequently Asked Questions
Can I find out who sent an email just from the IP address?
No. The IP tells you which server sent it, not who used that server. Millions of people might use the same server (like Gmail's). Only the email provider or an internet service provider can connect an IP to a specific account, and only with a court order or law enforcement request.
What if the email header shows multiple IP addresses?
Each "Received:" line represents one hop the email took. The bottom line is closest to the origin; the top line is closest to your inbox. If you see many hops, the email passed through several mail servers. The first one (at the bottom) is usually the most relevant for tracing the source.
Is it illegal to look up an IP address from an email?
No. Looking up an IP address using public WHOIS or geolocation tools is legal. Trying to access someone's computer, network, or accounts using that IP is illegal. Reporting a suspicious email to your provider or law enforcement is the right move.
Why does my own email show an IP address I don't recognize?
Your email provider's servers are in data centers you have never visited. That IP belongs to the mail server, not your computer. If you are concerned your account has been hacked, check your login history and enable two-factor authentication when ready.
Can I block emails from a specific IP address?
Yes, most email providers let you create filters or block rules based on sender address or domain. Blocking by IP alone is less reliable because legitimate mail servers share IPs and spammers change them constantly. Blocking the sender's address or domain is usually more effective.