How to find someone’s IP Address

How to find someone's IP address

What Is an IP Address?

An IP address (Internet Protocol address) is a unique numerical identifier assigned to each device connected to a computer network that uses the Internet Protocol for communication. It serves two main purposes: identifying the host or network interface and providing the location of the host in the network.

So, can we find someone’s IP address? Yes, we can!

What IP address says about you

An IP address reveals some information about your location, ISP, and type of Internet connection, but it doesn’t directly provide personal details. However, it can be combined with other data for tracking and profiling purposes.

Reminder: Finding someone’s IP address can be done through various methods, but it’s important to understand the legal and ethical considerations involved.

How to find someone’s IP address using email address

Received an anonymous email or abusive email without the sender info visible? Did you know that you can find out the sender’s IP address and other info from that email itself?

There are some steps involved which we’ve listed below:

  1. Open up your email client and view the email headers for that email.
  2. Email headers contain routing information and metadata about the email, including the IP address of the sender in some cases.
  3. Look for the “Received” headers which can show the path taken by the email from the sender to you.
  4. By tracing the “Received” headers, you can work your way back till you reach the origin.
Email Header with Received info

Do note that if the user is using a webmail like Gmail, their IP address will not appear in the header as the sender in this case is a Gmail server.

How to view the email headers depends on which email client you are using such as Gmail, Yahoo, Outlook, Thunderbird, etc. Check this out at How to trace an email address.

Some mail servers conceal the sender’s IP address or the mail server’s IP address by suppressing IP address information in the email header. In such cases, we cannot offer any IP geolocation due to the missing IP address.

Below is the sample of email tracer result by using an email tracer tool.

Email Tracer Result

How to find someone’s IP address using console in Linux

On Linux, there’s the ss command that is used to view information about network connections. Using ss, system administrators can view any current connection with info such as which external IP addresses are connected to the current machine along with the port info.

Follow these steps to view the connections on your Linux machine:

  1. In your console, type ss -ant, and press Enter.
  2. You should see all current TCP connections with the external IP addresses and ports being used.
State                   Recv-Q               Send-Q                               Local Address:Port                                  Peer Address:Port                Process
LISTEN                  0                    128                                                             *
LISTEN                  0                    4096                                                          *
LISTEN                  0                    4096                                                         *
LISTEN                  0                    4096                                                      *
ESTAB                   0                    64                                                    
TIME-WAIT               0                    0                                                 
TIME-WAIT               0                    0                                                 
LISTEN                  0                    128                                           [::]:22                                            [::]:*
LISTEN                  0                    4096                                          [::]:5355                                          [::]:* 
Find IP by using CMD in Linux

How to find someone’s IP address using Command Prompt (CMD) in Windows

On the Windows platform, it is common to use the netstat command to list active connections and identifying the relevant IP addresses from the output. This command is a favorite of network administrators to troubleshoot networking issues as it can show which IP address on the local is connecting to which IP address on the remote systems.

Let’s see the steps to view the IP addresses that your computer is currently connected to.

  1. Establish a direct connection, ensure you have an active, direct connection with the person.
  2. This could be through a chat program or a file-sharing session.
  3. On Windows, press Win + R to open the Run dialog, type cmd, and press Enter.
  4. Alternatively, search for “Command Prompt” in the Start menu and select it.
  5. In the Command Prompt window, type netstat -an -p TCP and press Enter.
  6. This command displays all TCP active connections and listening ports.
  7. Look for the IP addresses listed under the “Foreign Address” column.

These represent the remote IP addresses connected to your computer. If you have multiple connections, you may need to identify the specific connection related to the person you are interested in. This can be done by cross-referencing the port number or the connection state (e.g., ESTABLISHED).

Find IP by using netstat in Windows

Here is a simplified output of the netstat -an -p TCP command:

Active Connections

  Proto  Local Address          Foreign Address        State

In the above example, and are the foreign IP addresses connected to your computer. The :443 part indicates the port number being used.

Using ping instead of netstat

You can also use the ping command to see the IP address for a website or a machine.

  1. Open the Windows Run box by pressing Windows + R.  Type cmd and hit Enter.
  2. In the opened terminal, type ping plus the URL of the website.
  3. In our example, we’ll run ping to see the info.
  4. Now that you have the IP address, you can copy and paste it into an IP lookup tool.
Find IP by using ping command in Windows

Other methods to find someone’s IP address

Let’s take a look at other ways to determine someone’s IP address.

IP Logger

This generates a link for you to send to the person. When the link is clicked, it logs the IP address.

Web Server Logs

Web server logs are an excellent source for identifying the IP addresses of visitors if you run a website. The method to access the server logs depends on your hosting environment and the type of server you are using (e.g., Apache, Nginx).

Network Tools

Advanced users might use network analysis tools (e.g., WireShark, Nmap) to monitor network traffic, which can reveal IP addresses during direct interactions.

6 Ways to Find Someone's IP Address Infographic

How to get IP address information using IP lookup tool

After obtaining the IP address through various methods mentioned above, use an online IP lookup service to gather information about it. Below, we show how to query a single IP and also how to query multiple IP addresses.

Steps for querying info about a single IP address:

1. Open your web browser and go to an IP lookup tool website (e.g.,

2. Enter the obtained IP address into the demo search bar and then click on the Look Up button.

IP Lookup Tool

3. Review the displayed information, which might look like the image below.

Steps for batch query

1. Sign up free trial at

2. Upload IP address list in TXT or Apache/Nginx log format and then click on Upload & Process.

Batch IP by using file upload feature

3. Download the result in CSV or XLS file format by clicking the download button as shown in the screenshot below.

4. Review the displayed information, which might look like this.

Batch query result


Getting IP geolocation information using the IP lookup tools will give the approximate geographical location of that IP address. The accuracy is usually at the city-level which makes it less useful for locating a particular individual.


Find a solution that fits.

Was this article helpful?

Related Articles