Finding an IP address means looking up the numbers that identify a device or website on your network

An IP address is a set of numbers that identifies where data is coming from or going to. You might need to find one to troubleshoot a slow connection, see which device is using your bandwidth, locate a website's server, or understand where an email came from. The method depends on what you're looking for — a device on your own network, a website's server, or a device that contacted you.

Most of the time, you already have the tools built into your computer or phone. You do not need special software or a paid service. The steps differ slightly between Windows, Mac, and Linux, but the underlying process is the same: you ask your system to translate a name into numbers, or you look at the traffic your device is sending and receiving.

Key Takeaways

  • Finding a device's IP address on your own network takes two to three minutes using your router's admin page or your device's settings.
  • Looking up a website's IP address requires a command-line tool like nslookup or dig, which comes free on every computer.
  • Tracing where an email came from means reading the email headers, which most email programs hide by default but show when you ask.
  • Your own public IP address (the one the outside world sees) is different from your private address (the one inside your home network), and you can find both in seconds.

Finding a device's IP address on your home network

The easiest place to start is your router, because it keeps a list of every device connected to it. Log into your router's admin page by opening a web browser and typing 192.168.1.1 or 192.168.0.1 (the exact address is usually printed on the router itself or in its manual). Enter your router's username and password — if you have never changed these, they are often "admin" and "admin" or "admin" and the router's serial number.

Once you are logged in, look for a section called "Connected Devices," "DHCP Clients," "Device List," or "Attached Devices." This page shows every device on your network, its name, and its IP address. Write down the address next to the device you are looking for. If you do not see the device listed, it is either turned off, not connected to your network, or connected to a different network (like a guest network).

If you want to find the address directly on the device itself, the steps vary. On Windows, open Command Prompt (search for "cmd" in the Start menu), type ipconfig, and press Enter. Look for "IPv4 Address" under the network connection you are using. On Mac, go to System Preferences, click Network, select your connection, and the IP address appears in the window. On iPhone or iPad, go to Settings, tap Wi-Fi, tap the network name, and the IP address is listed under "IP Address."

Looking up a website's IP address

Every website lives on a server somewhere, and that server has an IP address. You can find it using a tool called nslookup (on Windows and Mac) or dig (on Mac and Linux). These tools are free and already installed on your computer.

On Windows, open Command Prompt, type nslookup example.com (replace "example.com" with the actual website), and press Enter. The tool will return one or more IP addresses under "Address." On Mac or Linux, open Terminal, type dig example.com, and look for the IP address in the "ANSWER SECTION" next to the letter "A."

You can also use an online tool if you prefer not to open Command Prompt. Search for "IP lookup" or "nslookup tool" and paste the website address into the search box. The result will show the same IP address you would get from the command line. This is useful if you want to check whether a website is down (by seeing if the IP address still resolves) or if you suspect a website is spoofed or redirecting you somewhere unexpected.

Finding your own public IP address

Your public IP address is the one the outside world sees when you visit a website or send an email. It is different from your private IP address (the one inside your home network). You can find it in seconds by visiting any IP lookup website — search for "what is my IP" and the first result will show it.

Alternatively, open Command Prompt or Terminal and type curl ifconfig.me (Mac or Linux) or visit ipconfig.co in a web browser. Your public IP address will appear on the page. This address changes periodically (usually when your internet provider assigns you a new one), so do not be surprised if it is different the next time you check.

Your public IP address is useful to know if you are setting up remote access to a device at home, troubleshooting a connection issue with your internet provider, or checking whether your location is being tracked correctly. It is also the address that appears in your router's logs when you look at outbound traffic.

Reading email headers to find where a message came from

Email headers contain the IP address of the server that sent the message. This is hidden by default in most email programs, but you can turn it on. In Gmail, open the email, click the three dots in the top right, and select "Show original." A new window opens with the full header information. Look for lines that say "Received: from" — these show the path the email took, with IP addresses in square brackets.

In Outlook, right-click the email, select "Message," then "Actions," then "View Message Source." In Apple Mail, go to the View menu and select "Message" then "All Headers." The header information appears at the top of the email window. The first "Received: from" line closest to the top shows where the email originated.

Be aware that email headers can be spoofed (faked), so an IP address in an email header is not always reliable proof of where the message really came from. However, it is useful for reporting spam or phishing emails to your email provider, because the provider can use the IP address to investigate further.

Using ping and tracert to test connections

Ping is a tool that sends a small packet of data to an IP address and measures how long it takes to come back. It tells you whether a device or website is reachable and how fast the connection is. Open Command Prompt or Terminal, type ping 8.8.8.8 (or any IP address), and press Enter. The tool shows how many milliseconds the response took. If you see "Request timed out" or "Destination unreachable," the device is not responding.

Tracert (on Windows) or traceroute (on Mac and Linux) shows the path your data takes to reach a destination. Type tracert example.com or traceroute example.com and press Enter. The tool lists every router your data passes through on its way to the destination, along with the time it takes at each hop. This is useful for finding where a connection is slowing down or breaking.

Understanding what you find and what it means

An IP address is just a number — it does not tell you much by itself. A device's private IP address (like 192.168.1.50) only matters inside your home network. A website's IP address tells you where the server is hosted, but not who owns it or what the website does. A public IP address tells you your internet provider's location, not your exact physical location.

If you find an unfamiliar IP address on your network, check your router's device list to see what it is. Many devices have names like "Alexa-Device" or "iPhone-of-John" that make them straightforward to identify. If you see an unknown device, you can usually disconnect it from the router's settings or change your Wi-Fi password to force it to reconnect (which will prompt for the password again).

If you are investigating a slow connection or a security concern, finding IP addresses is only the first step. The address itself does not prove anything — you need to match it against what you expect to see. If your router shows a device you do not recognize, or if a website's IP address has changed suddenly, those are signs worth investigating further.

Frequently Asked Questions

Can I find someone's location from their IP address?

An IP address can be mapped to a city or region, but not to a street address or specific building. The accuracy depends on the database being used and is often off by miles. Your internet provider knows your exact address, but a website or person who only sees your IP address cannot pinpoint where you live.

What does it mean if a device has two different IP addresses?

A device might have both a private IP address (on your home network) and a public IP address (the one the outside world sees). If a device is connected to both Wi-Fi and Ethernet, it may have two private addresses. If it is using a VPN, it may show a different public IP address than your router's.

How do I find the IP address of a printer or smart home device?

Check your router's device list first — most printers and smart devices appear there with their names. If not, open the device's app or settings menu and look for a "Network" or "Wi-Fi" section. The IP address is usually listed there. You can also print a network configuration page from most printers by holding a button on the device itself.

Is it safe to share my IP address?

Your public IP address is visible to every website you visit, so it is not secret. However, do not share it with people you do not trust, because it can be used to target your network with attacks. Your private IP address (like 192.168.1.50) is only useful to someone already on your network, so it is less sensitive.

Why does my IP address keep changing?

Your public IP address changes when your internet provider assigns you a new one, which happens periodically or when you restart your modem. Your private IP address can change if your router restarts or if you turn a device off and back on. If you need a stable address, you can assign a static IP address in your router's settings, though this is rarely necessary for home use.