Public IP vs. Private IP: What's the Difference? {#public-vs-private-ip}
Your public IP address is assigned by your Internet Service Provider (ISP) and identifies your entire network to the outside internet. It's the address a website's server sees when you load a page, and it's the same for every device on your home network because they all share one connection to the internet through your router. Your private IP address, by contrast, is assigned by your router to each individual device — laptop, phone, printer, smart TV — so they can talk to each other and to the router on the local network.
Private IP addresses come from three reserved blocks defined in RFC 1918: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. These ranges never route on the public internet, which is why two people on completely different home networks can both have a device at 192.168.1.5 without any conflict. Your router uses Network Address Translation (NAT) to translate between your device's private IP and your network's single public IP whenever traffic leaves the local network.
This distinction matters for troubleshooting: if you're setting up port forwarding, remote access, or checking why a device won't connect to another device on the same Wi-Fi, you need the private IP. If you're checking what a website, game server, or remote support tool sees when you connect, you need the public IP. The What Is My IP Address, Explained guide covers this split in more depth, including IPv4 vs. IPv6 addressing.
How to Find Your Public IP Address {#find-public-ip}
Your public IP is the easiest one to find because it doesn't depend on your operating system — any device with a browser can check it the same way.
Method 1 — Use a tool. Open the What Is My IP tool, which auto-detects and displays your public IPv4 and IPv6 address the moment the page loads, with no form to submit.
Method 2 — Command line.
# macOS / Linux
curl ifconfig.me
# Windows (PowerShell)
(Invoke-WebRequest -Uri "https://ifconfig.me").Content
Both commands query an external server and return the public IP that server sees — which is your router's public-facing address, not any individual device's private IP.
If you need more than just the address — ownership, hosting provider, or approximate geolocation — run it through IP Lookup, which resolves ASN, ISP, and location data for any public IP.
How to Find Your Private (Local) IP Address {#find-private-ip}
Your private IP depends on which device and OS you're using. Each method below reads the same underlying network configuration your device already has — none of it requires installing anything.
Windows:
- Press
Win + R, typecmd, and press Enter. - Type
ipconfigand press Enter. - Look for IPv4 Address under your active adapter (Wi-Fi or Ethernet) — that's your private IP.
Wireless LAN adapter Wi-Fi:
IPv4 Address. . . . . . . . . . . : 192.168.1.42
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
Run ipconfig /all instead if you also need your MAC address, DHCP lease details, or DNS servers.
macOS:
- Open System Settings → Wi-Fi (or Network).
- Click your active connection, then Details… → TCP/IP tab. The IP Address field shows it.
Or via Terminal:
ipconfig getifaddr en0 # Wi-Fi on most Macs
ipconfig getifaddr en1 # Ethernet on most Macs
Run networksetup -listallhardwareports first if you're unsure which interface (en0, en1, etc.) maps to Wi-Fi vs. Ethernet on your specific Mac.
iPhone / iPad:
- Open Settings → Wi-Fi.
- Tap the (i) icon next to your connected network.
- Scroll to IPv4 Address under the network details.
Android:
- Open Settings → Network & internet → Internet.
- Tap the gear icon next to your connected Wi-Fi network.
- Look for IP address under the network details (exact wording and path vary slightly by manufacturer — Samsung, Pixel, and OnePlus each place it a little differently within Wi-Fi settings).
Linux:
ip addr show | grep "inet "
# or, more targeted:
hostname -I
The first non-127.0.0.1 address returned is your private IP on the active interface.
IP Address Lookup by Device — Reference Table {#reference-table}
This table summarizes the fastest built-in method per device — no third-party app required for any of them.
| Device / OS | Menu Path | Command-Line Alternative |
|---|---|---|
| Windows 10/11 | Settings → Network & Internet → Properties | ipconfig |
| macOS | System Settings → Wi-Fi → Details → TCP/IP | ipconfig getifaddr en0 |
| iPhone / iPad | Settings → Wi-Fi → (i) next to network | — (no built-in terminal) |
| Android | Settings → Network & internet → Wi-Fi → gear icon | — (varies by manufacturer) |
| Linux | Network Settings applet | ip addr or hostname -I |
| Any device (public IP) | Visit What Is My IP | curl ifconfig.me |
Menu wording shifts between OS versions and Android manufacturer skins, but the underlying network-configuration data these paths expose is identical — they all read the same IP assignment from the device's network stack.
Common Issues & Troubleshooting {#common-issues-troubleshooting}
ipconfig shows an address starting with 169.254.x.x. This is an APIPA (Automatic Private IP Addressing) fallback address, meaning your device failed to get an IP from DHCP — it isn't a usable network address. Check your Wi-Fi connection or Ethernet cable, then release/renew: ipconfig /release followed by ipconfig /renew on Windows.
Public IP tool and router admin panel show different addresses. That's expected. The public IP tool shows your router's internet-facing address; the router admin panel shows the private gateway address (commonly 192.168.1.1) used only inside your network. See the Router IP Address guide if you specifically need the gateway address.
Private IP keeps changing between reboots. Most home routers hand out private IPs via DHCP with a lease time, so the same device can get a different address after reconnecting. If you need a device to keep the same local IP — for port forwarding or a home server — set a DHCP reservation in your router's admin panel, or assign a static IP; see Static vs. Dynamic IP Address for when a static assignment is actually worth it.
Android shows no IP address at all under Wi-Fi details. This usually means the device is connected to Wi-Fi but hasn't yet been assigned an address, or is on a captive-portal network (hotel/airport Wi-Fi) that requires a login page first. Reconnect to the network and check again after the captive portal login completes.
VPN changes what the public IP tool shows. If a VPN or proxy is active, What Is My IP will display the VPN exit server's address, not your ISP-assigned one — this is expected behavior, not a tool error.
Frequently Asked Questions {#frequently-asked-questions}
Q: What's the difference between my public and private IP address?
Your public IP is assigned by your ISP and is visible to the internet; your private IP is assigned by your router and is only visible on your local network. Per RFC 1918, private IPs come from three reserved ranges that never route publicly.
Q: How do I find my IP address without any software?
For your public IP, visit any browser-based tool like What Is My IP — no install needed. For your private IP, use the network settings already built into your OS (Wi-Fi details on mobile, Network settings on desktop).
Q: Why does my IP address keep changing?
Most ISPs assign dynamic public IPs that can change on router reboot or after the DHCP lease expires; most home networks similarly assign dynamic private IPs. This is normal and by design — see Static vs. Dynamic IP Address for when a fixed address is actually needed.
Q: Can someone find my exact location from my IP address?
An IP address typically resolves to a city or region tied to your ISP's infrastructure, not a precise street address. Run IP Lookup to see exactly what geolocation data is publicly associated with your own IP.
Q: What is ipconfig /all and how is it different from ipconfig?
ipconfig shows basic IP, subnet mask, and default gateway per adapter. ipconfig /all adds MAC address, DHCP server, lease start/expiry, and DNS server details — useful when troubleshooting beyond just "what's my IP."
Q: Why does my iPhone show a private address like 192.168.1.x under Wi-Fi but a different one from an IP checker website?
The Wi-Fi settings page shows your private IP on the local network; the IP checker website shows your router's public IP as seen from the internet. Both are correct — they're just answering different questions.
Q: How do I find the IP address of another device on my network, not my own?
Log into your router's admin panel and look for a connected-devices or DHCP client list, which shows every device's private IP and MAC address. The MAC Address Lookup guide explains how to identify a device's manufacturer once you have its MAC address.
Key Takeaways {#key-takeaways}
- ✓ "Your IP address" means two different things: public (ISP-assigned, internet-facing) and private (router-assigned, local-network only).
- ✓ Public IP: fastest to check via What Is My IP or
curl ifconfig.me. - ✓ Private IP:
ipconfig(Windows),ipconfig getifaddr en0(Mac), or Wi-Fi network details (iPhone/Android). - ✓ Private IPs come from RFC 1918 ranges (
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16) and never route on the public internet. - ✓ A
169.254.x.xaddress means DHCP failed — that's not a usable IP, it's an APIPA fallback.
Next Steps {#next-steps}
Once you have your public IP, run it through IP Lookup to see the ISP, ASN, and geolocation data tied to it, or check Subnet Calculator if you need to understand how your private IP fits into your network's subnet mask. If you're setting up port forwarding or remote access, confirm the relevant port is actually reachable with Port Scanner. For the address that gets you into your router's admin panel specifically — not your device's own IP — see the Router IP Address guide. And if you're deciding whether your connection needs a fixed address at all, Static vs. Dynamic IP Address breaks down when a static IP is actually worth requesting from your ISP.