Monday, September 19, 2011

How to find the IP address of the email sender in Gmail, Yahoo mail, Hotmail, AOL, Outlook Express, etc.

Leave a Comment

How to find the IP address of the email sender in Gmail, Yahoo mail, Hotmail, AOL, Outlook Express, etc.


When you receive an email, you receive more than just the message. The email comes with headers that carry important information that can tell where the email was sent from and possibly who sent it. For that, you would need to find the IP address of the sender. The tutorial below can help you find the IP address of the sender.
Note that this will not work if the sender uses anonymous proxy servers.
Also, note that if you receive an email sent from a Gmail account through the web browser, you may not be able to find the real IP address because Google hides the real IP address of the sender. However, if someone sends you a mail from his/her Gmail account using a client like Thunderbird, Outlook or Apple Mail, you can find the originating IP address.
Lets begin this. First of all, the IP address is generally found in the headers enclosed beween square brackets, for instance, [129.130.1.1]

Finding IP address in Gmail

  1. Log into your Gmail account with your username and password.
  2. Open the mail.
  3. To display the email headers,
    • Click on the inverted triangle beside Reply. Select Show Orginal.
  4. You may copy the headers and use my IP address detection script to ease the process. Or if you want to manually find the IP address, proceed to 5.
  5. Look for Received: from followed by the IP address between square brackets [ ].
    Received: from [69.138.30.1] by web31804.mail.mud.yahoo.com
  6. If you find more than one Received: from patterns, select the last one.
  7. Track the IP address of the sender

Finding IP address in Yahoo! Mail

  1. Log into your Yahoo! mail with your username and password.
  2. Click on Inbox or whichever folder you have stored your mail.
  3. Click on the Subject of the email you want to track and right-click. You should get a menu like this.
    Yahoo! headers
  4. You may copy the headers and use my IP address detection script to ease the process. Or if you want to manually find the IP address, proceed to the next step.
  5. Look for Received: from followed by the IP address between square brackets [ ].
    That should most likely be the IP address of the sender.
    If there are many instances of Received: from with the IP address, select the IP address in thelast pattern. If there are no instances of Received: from with the IP address, select the first IP address in X-Originating-IP.
  6. Track the IP address of the sender

Finding IP address in Hotmail

Hotmail has been integrated with Windows Live, or vice-versa. And the format has changed. Here is how you find the IP address of the sender.
  1. Log into your Hotmail/Windows Live account with your username and password.
  2. Click on the Inbox link on the left.
  3. Under the column that says "Sort by", find the email that you want to track and right-click on it. You should get a menu that has something like Mark as readMark as unread, and so on. The last option in the menu should be View message source. Select it.
    headers hotmail
  4. You should see the email headers now.
  5. You may copy the headers and use my IP address detection script to ease the process. Or if you want to manually find the IP address, proceed to step 6.
  6. If you find a header with X-Originating-IP: followed by an IP address, that is the sender's IP address
  7. If that doesn't work, look for Received: from followed by IP address within square brackets[].
  8. * If you have multiple Received: from headers, eliminate the ones that have proxy.anyknownserver.com.
  9. Track the IP address of the sender

Finding IP address in AOL

  1. Log into your AOL Mail AIM account with your username and password.
  2. Open the email that you want to track.
  3. On the top row, click on Action and in the drop-down menu, select View Message Source
    headers aol
  4. It opens a new page with the headers. Once you have the headers, look for the IP address that follows X-AOL-IP:. That should be the IP address of the sender.
  5. Track that IP address of the sender

IP Address Detection Script

I wrote a Perl script to automate this task for you. All you have to do is select your email service and copy your email headers in the box below.
You may do one of the following:
  • You can copy all the headers from your email and paste them here.
    In this case, the unnecessary headers (like Subject:) will be removed automatically.
  • You can remove all headers except those beginning with
    • X-Originating-IP:
    • Received:

0 comments:

Post a Comment