Your IP address is a unique digital label assigned to your device whenever it connects to a network. Whether you're troubleshooting a dropped connection, setting up a home server, or configuring a remote printer, finding this address takes only a few seconds once you know where to look. Devices handle networking through two distinct layers: your local network address (private IP) and your connection to the wider internet (public IP).
Knowing the difference between these two addresses prevents confusion. Your router assigns a private IP to your laptop, phone, or smart TV so devices can talk to each other inside your house. Meanwhile, your Internet Service Provider assigns a public IP to your modem or router so websites and online services know where to send data back to you.
How to Find Your Public IP Address
Your public IP is visible to every website you visit. You don't need command-line tools or system settings to find it; you simply ask an external service.
To check your public IP instantly, open any web browser and type "what is my IP" into a search engine, or visit specialized verification portals like Cloudflare Diagnostics. The site reads the incoming request packet from your browser and displays the numerical string immediately.
If you prefer using the command line for automation or scripting, you can query public lookup services directly. Open your terminal or command prompt and run:
curl ifconfig.me
This command queries a public endpoint and returns your exact public IPv4 or IPv6 address directly in the terminal window without loading a full graphical web page.
Finding Your Private IP on Windows
Windows systems use command-line utilities to display internal network configurations quickly.
- Press the Windows key, type
cmd, and hit Enter to open the Command Prompt. - Type
ipconfigand press Enter. - Look for the adapter currently active (usually labeled Wireless LAN adapter Wi-Fi or Ethernet adapter).
- Locate the line reading IPv4 Address. It typically starts with
192.168.x.xor10.x.x.x.
You'll also see your Default Gateway listed right below the IP address. That gateway address is the private IP of your home router, which you can type into your web browser to log into your router's admin panel.
Finding Your Private IP on macOS
Apple computers make local network details accessible through both the graphical system settings and the terminal.
- Open System Settings from the Apple menu.
- Click on Wi-Fi or Network in the sidebar.
- Click Details next to your active network connection.
- Your local IP address will be displayed alongside your subnet mask and router details.
Alternatively, you can open the Terminal application and run this command:
ipconfig getifaddr en0
Note: Replace en0 with en1 if you are connected via a secondary interface or an ethernet dongle. You can check all active interfaces by running ifconfig.
Finding Your IP on Mobile Devices
Smartphones and tablets require you to check your active Wi-Fi properties.
- Android: Open Settings, tap Network & internet, select Wi-Fi, and tap the gear icon next to your connected network. Scroll down to view your IP address and network details.
- iOS (iPhone/iPad): Open Settings, tap Wi-Fi, and tap the blue "i" icon next to your connected network name. Your IPv4 address appears directly in the network summary.
IPv4 vs. IPv6: What's the Difference?
You'll likely notice two different formats when looking up your network information.
- IPv4 uses a 32-bit address scheme, written as four numbers between 0 and 255 separated by periods (for example,
192.0.2.1). Because the internet grew faster than anticipated, IPv4 addresses ran out of unique combinations, leading to widespread address sharing via Network Address Translation (NAT). - IPv6 uses a 128-bit address scheme written in hexadecimal format separated by colons (for example,
2001:db8::1). IPv6 provides an astronomically large pool of unique addresses, eliminating the need for NAT and allowing direct device-to-device communication across the global web.
Common Mistakes When Checking IP Addresses
People often run into trouble because they confuse their local network state with their external connection. Here are a few pitfalls to avoid:
- Checking local IP when public is needed: If a technical support agent asks for your IP address to diagnose a remote connection issue, giving them
192.168.1.5won't help because that address is shared by millions of homes worldwide. They need your public IP. - Ignoring VPN interference: If you run a Virtual Private Network, your public IP lookup will return the address of the VPN server rather than your physical ISP location. Always disconnect your VPN temporarily if you need to verify your raw home network connection.
- Confusing dynamic leases: Dynamic IPs change periodically. If you set up local port forwarding or a home media server using a local IP, check if your router supports DHCP reservation so your device keeps the same private address after a reboot.
Frequently Asked Questions
Can someone track my exact physical location using my public IP?
No. Your public IP reveals the general geographic region, city, and your Internet Service Provider, but it does not pinpoint your exact street address or home. Precise geolocation requires GPS hardware or explicit permission sharing on your device.
Why does my IP address change periodically?
Most residential internet providers use dynamic IP assignment. Your router is leased an IP address for a set period. When that lease expires or your modem reboots, the provider may assign a fresh IP address from their pool.
What is a static IP address, and do I need one?
A static IP is a permanent address assigned manually by your ISP or device administrator. Standard home users rarely need one. However, static IPs are essential if you host public servers, run security camera systems with remote feeds, or require strict corporate VPN whitelisting.
Is it safe to share my IP address online?
Sharing your public IP casually generally doesn't grant strangers direct access to your private files, as your router's firewall blocks unauthorized incoming connections. However, malicious actors can use your IP to launch targeted denial-of-service attacks or approximate your city-level location, so it's best not to broadcast it publicly.