Your IP address is the numeric signature your device uses to communicate across the internet. Whether you're troubleshooting a home network connection, setting up remote access, or diagnosing a firewall issue, knowing how to quickly locate both your public and private IP address is essential.
Finding your IP address doesn't require technical wizardry. If you need your public address—the one visible to websites and online services—you can simply type "what is my IP" into any search engine or check specialized tools like WhatIsMyIP. If you're looking for your private address—the local identifier assigned by your router—you can find it in seconds using your operating system's built-in command prompt or network settings. Let's break down how to find both types across different devices.
Understanding the Difference: Public vs. Private IP Addresses
Before hunting down numbers, it's helpful to understand what you're looking at. Networks divide IP addresses into two distinct categories based on where they operate.
Your private IP address is assigned by your home or office router using a protocol called DHCP. Devices on the same local network use these internal addresses to talk to each other, such as when your laptop sends a print job to a wireless printer. These numbers typically start with 192.168. or 10. and aren't routable across the wider internet. To understand the bigger picture, we recommend the detailed report by The New York Times.
Your public IP address is assigned by your Internet Service Provider (ISP). When you visit a website, your router translates your local traffic so it can exit your home network and travel across the global internet. The web server sees your public IP address, which indicates your general geographic region and ISP.
How to Find Your Public IP Address
Your public IP address is universal for every device connected to your home router. Because your router shares a single public connection with your ISP, any phone, computer, or tablet on your Wi-Fi shares that same public face to the internet.
The absolute fastest method is opening a web browser and visiting a lookup site. Alternatively, you can use IPinfo to see not just your numerical address, but also your approximate ISP details and region.
If you prefer using a command-line interface on Linux or macOS, you can query an external lookup server directly by opening your terminal and running:
curl ifconfig.me
This command instantly returns your active public IP address without loading a full web browser.
How to Find Your Private IP Address on Windows
Windows users can uncover their local network details using the command prompt or system settings. The command-line method remains the favorite among system administrators because it provides a complete overview of every active network adapter.
- Press the Windows Key, type
cmd, and press Enter to open the Command Prompt. - In the terminal window, type
ipconfigand hit Enter. - Scroll through the text to find your active network connection, labeled as Wireless LAN adapter Wi-Fi or Ethernet adapter.
- Look for the line reading IPv4 Address. It will typically display a format like
192.168.1.15or10.0.0.45.
If you prefer a graphical interface, open Windows Settings, navigate to Network & Internet, select Wi-Fi or Ethernet, and click on your active network properties to view your IPv4 address listed alongside your gateway and DNS servers.
How to Find Your Private IP Address on macOS
Apple handles network configurations cleanly through both System Settings and the Terminal app.
If you prefer the graphical route:
- Open the Apple menu in the top left corner and select System Settings.
- Click Wi-Fi or Network in the sidebar.
- Click the Details button next to your connected network.
- Your local IP address will be displayed right beneath your network status details.
To find it via the terminal:
- Open Spotlight, type
Terminal, and open the application. - Type
ipconfig getifaddr en0(for Wi-Fi) oren1(for ethernet) and press Enter. - Your local IP address will appear immediately on the next line.
For official network documentation and hardware configuration guidelines, you can reference resources like Apple Support.
Finding Your IP Address on Mobile Devices
Mobile operating systems simplify network details, though the menus vary slightly between iOS and Android.
iPhone and iPad
- Open the Settings app and tap Wi-Fi.
- Tap the blue "i" information icon next to the connected network name.
- Look for IP Address under the IPv4 Address section.
Android
- Open Settings and tap Network & internet or Connections.
- Tap Wi-Fi and select the gear icon next to your active network.
- Expand the advanced settings to view your IP address, subnet mask, and router gateway.
Common Mistakes When Managing IP Addresses
People often run into confusion or security risks when dealing with network identifiers. Avoiding these common missteps keeps your network secure and prevents troubleshooting headaches.
Don't confuse your default gateway with your device's IP address. Your router's gateway address often ends in .1 (such as 192.168.1.1), which is the address you type into a browser URL bar to log into your router's admin panel. Assigning that gateway address to a specific computer will cause an IP conflict and drop your connection.
Another frequent error involves treating public IP addresses as permanent fixtures. Unless you pay your ISP for a static IP address, your public IP address is dynamic. It can change whenever your modem reboots, your lease expires, or your ISP performs maintenance.
Finally, remember that hiding behind a virtual private network (VPN) alters your public IP address. If you're testing geo-restrictions or trying to find your true home public IP address, make sure to disable any active VPN tunnels first.
Frequently Asked Questions
Can someone hack my device if they know my public IP address?
Generally, no. Your public IP address only reveals your general geographic location and your internet service provider—roughly equivalent to your street name, not your house number. Hackers cannot directly breach your device using just an IP address unless you are running vulnerable, unsecured server software with open ports.
What is the difference between a static and dynamic IP address?
A dynamic IP address changes periodically and is assigned automatically by your ISP or router. A static IP address is a permanent numerical assignment purchased from your ISP, commonly used by businesses that host their own web servers or require stable remote access tunnels.
Why does my IP address show a different city?
Geolocation databases track IP address blocks based on where ISPs register their equipment or route their regional hubs. If your ISP routes your traffic through a major data center two towns over, lookup tools may display that neighboring city instead of your exact physical location.
How do I change my public IP address?
In most cases, you can force your home router to request a new dynamic IP address from your ISP by unplugging your modem and router for about five minutes, then plugging them back in to initiate a fresh DHCP handshake.