Where to find an IP address in your email headers
An IP address is a string of numbers that identifies a computer on the internet — something like 192.168.1.5 or 2001:db8::1. When someone sends you an email, their mail server adds information to the message that includes the IP address it came from. This information lives in the email headers, which most email programs hide by default.
To see the headers, you need to open the email and look for a "show original," "view source," "view message source," or "view headers" option. The exact name and location depend on which email service you use. Once you open the headers, you will see dozens of lines of technical information. The IP address you are looking for appears in a line that starts with "Received:" — usually the first or second one from the top.
The "Received:" line will look something like this: Received: from mail.example.com (mail.example.com [203.0.113.42]). The IP address is the number in the square brackets. If there are multiple "Received:" lines, the topmost one shows the most recent server the email passed through — usually the sender's mail server.
Key Takeaways
- Email headers contain the IP address of the server that sent the message, found in the "Received:" line near the top.
- You must enable "show original" or "view source" in your email program because headers are hidden by default.
- The IP address appears in square brackets after the server name — for example, [203.0.113.42].
- The topmost "Received:" line shows the sender's mail server; lower lines show servers the email passed through on its way to you.
- An IP address alone does not identify a person — it identifies a mail server, which may belong to Gmail, Outlook, a company, or an internet service provider.
How to view headers in Gmail
In Gmail, open the email you want to check. Click the three dots (more actions menu) in the top right corner of the message. Select "Show original" from the dropdown. A new tab or window will open showing the full email source, including all headers.
Scroll to the top of the source view. Look for the first "Received:" line. The IP address will be in square brackets after the server name. If the email came from a Gmail account, you will see "Received: from mail-..." followed by an IP address in brackets. Write down or copy the IP address for your records.
How to view headers in Outlook and Outlook.com
In Outlook.com (the web version), open the email and click the three dots in the top right. Select "View message details" or "View message source." The headers will display in a panel or new window. Look for the topmost "Received:" line and find the IP address in square brackets.
In Outlook (the desktop process), open the email and go to the File menu. Select "Properties" (on Windows) or "Get Info" (on Mac). A dialog box will open showing the message headers. Scroll through the headers to find the first "Received:" line and locate the IP address in brackets.
How to view headers in Apple Mail and other email clients
In Apple Mail on Mac, open the email. Go to the View menu and select "Message" then "All Headers." The headers will now display at the top of the message. Find the first "Received:" line and note the IP address in square brackets.
In other email clients like Thunderbird, right-click the email and look for "View Message Source" or "View Headers." The process varies slightly, but the goal is the same: find the "Received:" line and extract the IP address. If you cannot find a headers option in your email program, check the Help menu or search for "[your email client] view headers."
What an IP address tells you and what it does not
An IP address identifies a mail server, not a person. If the email came from Gmail, Yahoo, Outlook, or another large email provider, the IP address belongs to that company's server — not to the person who sent the message. Millions of people use the same mail server, so the IP address alone cannot tell you who wrote the email.
If the email came from a company or organization with its own mail server, the IP address belongs to that organization's network. You might be able to determine the company or internet service provider that owns the IP address by using a free IP lookup tool, but this still does not identify the individual sender. To find out who sent the email, you need to look at the "From:" field and the sender's email address — not the IP address.
IP addresses are useful for security purposes. If you receive a suspicious email that claims to be from your bank or a service you use, checking the IP address can help you spot a fake. A real bank email will come from the bank's mail server, not from a random IP address. However, sophisticated scammers can sometimes spoof email headers, so an IP address check is one tool among several, not a complete solution.
Using IP lookup tools to learn more
Once you have the IP address, you can enter it into a free IP lookup tool to find out which organization owns that address and where it is located geographically. Common tools include MaxMind GeoIP2, IP2Location, and WHOIS lookup services. These tools show you the country, city, and internet service provider associated with the IP address.
Keep in mind that the geographic location shown is approximate and based on where the internet service provider assigned the IP address — not necessarily where the email was actually sent from. A person traveling in another country, using a VPN, or sending mail through a proxy server will show a different location than their actual location. The IP address is useful context, but it is not a precise tracker.
Why checking email headers matters for your security
Phishing emails often come from servers that are not where they claim to be. If you receive an email claiming to be from your bank, your email provider, or a service you use, checking the headers can help you spot a fake. Real emails from these organizations come from their official mail servers, which you can verify by looking up the IP address or the server name in the "Received:" line.
For example, if you get an email claiming to be from PayPal but the "Received:" line shows a mail server from a different company entirely, that is a red flag. Legitimate companies send email from their own servers or from authorized mail services. If the headers do not match the sender's claim, do not click links or read attachments — report the email as spam or phishing instead.
Frequently Asked Questions
Can I find out who sent an email just from the IP address?
No. The IP address identifies the mail server, not the person. If the email came from Gmail or Outlook, millions of people use that same server. Even if the IP belongs to a company, it only tells you the organization — not which employee sent it. You need the sender's email address and other information to identify the person.
What if there are multiple IP addresses in the headers?
Emails pass through multiple mail servers on their way to you. Each server adds a "Received:" line with its IP address. The topmost line is usually the sender's server. Lower lines show servers the email passed through. If you are checking for phishing, focus on the topmost IP address — that is where the email originated.
Can someone hide their IP address when sending email?
Not completely. Mail servers always record the IP address of the computer that connected to them. However, someone can use a VPN, proxy, or anonymous mail service to mask their real IP address. The headers will show the VPN or proxy server's IP instead. This is why IP addresses are useful context but not a complete security solution.
Is it illegal to look up someone's IP address from their email?
No. Email headers are part of the message itself — they are not hidden or protected information. Anyone can view them. However, what you do with that information matters. Looking up an IP address for security reasons (like checking if an email is phishing) is fine. Using it to harass, threaten, or track someone is not.
Why do some emails not show an IP address in the headers?
All emails have IP addresses in their headers — they are required for mail servers to route messages. If you cannot find one, you may not be looking at the right line. Make sure you are viewing the full headers, not just a summary. Some email clients show only partial headers by default. Look for any line starting with "Received:" and check the square brackets for the IP address.