Where the IP address lives in your email
The IP address of an email sender is stored in the email headers, not in the message body you see on screen. Every email carries invisible technical information that travels with it — sender details, routing servers, timestamps, and the sender's IP address. Your email program hides these headers by default because they are meant for mail servers, not for you to read every day.
The headers tell the story of where an email came from and what servers handled it on the way to your inbox. The sender's IP address appears in a line called the "Received" header, usually near the top of the full header block. Different email providers format this information slightly differently, but the IP address is always there if you know where to look.
Key Takeaways
- Email headers contain the sender's IP address in the "Received" line, but you must view full headers to see it — your email program hides them by default.
- In Gmail, right-click the email and select "Show original" to see all headers; in Outlook, click the three dots and select "View message details".
- The first "Received" header at the top of the block usually shows the sender's IP address, written as four numbers separated by periods (example: 192.168.1.1).
- An IP address alone does not identify a person — it identifies a device or network, and tracing it further requires contacting the internet service provider.
How to view full headers in Gmail
Open the email you want to examine. In the top right corner, click the three vertical dots (the menu icon). A dropdown menu appears. Select "Show original" — this opens a new tab or window showing the complete email headers in plain text.
The headers appear as a long block of text at the top of the page. Scroll down through this block and look for lines that begin with "Received:". These lines show the path the email took through mail servers. The first "Received:" line (at the very top) usually contains the sender's IP address. It appears after "from" and before the mail server name, written as four numbers separated by periods, like 203.45.67.89.
How to view full headers in Outlook (web version)
Open the email. In the top right, click the three dots (more actions). Select "View message details" or "View message source" depending on your Outlook version. A panel opens on the right side showing the headers.
Look for the "Received:" lines in this panel. The topmost "Received:" line contains the sender's information. The IP address appears after "from" and is formatted as four numbers with periods between them. If the panel does not show enough detail, click "View message source" instead to see the raw headers in full.
How to view full headers in Outlook (desktop version)
Right-click the email in your inbox. Select "Message Options" from the menu. A dialog box opens. At the bottom, you will see a large text box labeled "Internet Headers" or similar. This box contains all the email headers.
Scroll through this text to find the "Received:" lines. The first one at the top usually shows the sender's IP address after the word "from". Copy the IP address (the four numbers separated by periods) if you need to record it or look it up further.
How to view full headers in Apple Mail
Select the email. In the menu bar at the top of your screen, click "Message". A dropdown menu appears. Select "Show All Headers" or "Show Raw Message Source". The full headers now display in the email window above the message body.
Look for "Received:" lines in this header block. The sender's IP address appears in the first "Received:" line, written as four numbers separated by periods. You may need to scroll up in the headers section to see the earliest "Received:" line, which is closest to the sender's device.
Understanding what the IP address tells you
An IP address is a unique number assigned to a device or network connection. Finding it in an email header means you have identified the network that sent the message, but not necessarily the person who sent it. A home internet connection has one IP address shared by everyone on that network. A business network may have hundreds of devices sharing the same IP address through a proxy server.
The IP address alone cannot tell you a person's name, location, or identity. To learn more about an IP address — such as what internet service provider owns it or what city it is registered to — you would need to use an IP lookup tool and then contact that provider with legal authority. Most internet service providers do not release customer information without a court order.
When headers are forged or missing
Some emails have headers that have been altered or faked. Spam and phishing emails often contain false "Received:" lines designed to make the message look like it came from a trusted source. If an email claims to be from your bank but the IP address belongs to a different country, that is a red flag that the headers may be forged.
Legitimate emails from major providers like Gmail, Outlook, or Yahoo will have headers that match their known mail servers. If you are unsure whether an email is real, do not click links or read attachments. Instead, go directly to the company's official website by typing the address into your browser yourself, or call their customer service number from their official website.
Frequently Asked Questions
Can I find out who sent an email just from the IP address?
No. An IP address identifies a network or device, not a person. Multiple people may use the same IP address, especially on shared networks like home WiFi or office networks. To identify a specific person, you would need additional information and legal authority to contact their internet service provider.
What if the email header shows multiple IP addresses?
Each "Received:" line shows one server the email passed through on its way to you. The topmost "Received:" line is closest to the sender's device, so that IP address is the most relevant. The lower lines show mail servers that relayed the message, not the original sender.
Is it legal to look up someone's IP address from their email?
Looking at your own email headers is always legal. Sharing or using someone's IP address to harass, threaten, or identify them without consent may violate laws depending on your location. If you believe an email is fraudulent or threatening, report it to your email provider or local law enforcement instead of investigating on your own.
Why does my email show multiple "from" addresses in the headers?
Email forwarding, mailing lists, and shared mailboxes can create multiple "from" lines. The original sender's IP address appears in the first "Received:" line at the very top of the headers. Lines lower down show servers that processed the email after it left the sender's device.
Can I find an IP address from an email on my phone?
Most phone email apps do not show full headers by default. On iPhone Mail, you can sometimes view headers by scrolling to the top of the message. On Android Gmail, open the email, tap the three dots, and select "Show original" just as you would on a computer. Some phone apps do not support header viewing — in that case, forward the email to yourself on a computer to view the headers there.