Public vs private IP address: what’s the difference?
Open your phone’s Wi-Fi settings and you’ll probably see an address like 192.168.1.15. Visit our home page and you’ll see a completely different one. Both are your IP address — one is private, one is public — and they do different jobs.
The one-sentence answer
A public IP address identifies your whole connection on the internet, while a private IP address identifies a single device inside your home or office network.
| Public IP | Private IP | |
|---|---|---|
| Assigned by | Your ISP | Your router (via DHCP) |
| Visible to | Every website and service you connect to | Only devices on the same local network |
| Unique? | Unique across the internet (at any given moment) | Only unique within your network — millions of homes use 192.168.1.1 |
| Example | 203.0.113.42 | 192.168.1.15 |
| How to see it | myiplookup.io | Your device’s network settings |
The private IP address ranges
Three blocks of IPv4 addresses are reserved for private networks by a standard called RFC 1918. Routers on the public internet won’t forward traffic to them, which is why the same addresses can be reused in every home and office:
10.0.0.0–10.255.255.255(10.0.0.0/8) — common in large company networks.172.16.0.0–172.31.255.255(172.16.0.0/12) — used by some routers and many cloud and container setups.192.168.0.0–192.168.255.255(192.168.0.0/16) — the familiar home-router range.
A few other special addresses you might spot:
127.0.0.1— “localhost”, your device talking to itself.169.254.x.x— a self-assigned address. If you see this, your device couldn’t get an address from the router; restart the router or reconnect.100.64.0.0–100.127.255.255— shared address space used by ISPs for carrier-grade NAT (more on that below).
IPv6 has its own equivalents: addresses starting with fe80:: are link-local and those starting with fd are private “unique local” addresses.
How NAT lets your devices share one public IP
Your ISP typically gives your home a single public IPv4 address, yet you might have twenty devices online. The trick is Network Address Translation (NAT), built into every home router.
- Your laptop (192.168.1.15) asks for a web page.
- The router swaps the private source address for your public IP, notes which device asked, and sends the request on.
- The reply comes back to your public IP. The router checks its notes and forwards it to 192.168.1.15.
A useful side effect: devices on the internet can’t start a connection to your laptop directly, because they only see the router. That’s a basic layer of protection, though it isn’t a substitute for a proper firewall.
What is CGNAT, and does it affect me?
Because the world has run short of IPv4 addresses, many mobile networks and some home broadband providers use carrier-grade NAT (CGNAT). Your router gets an address from the 100.64.x.x range, and the ISP performs NAT a second time so many customers share one public IP.
For browsing and streaming you won’t notice any difference. CGNAT can cause problems if you want to:
- Host a game server or run port forwarding.
- Access home cameras or a NAS remotely without a cloud service.
- Avoid CAPTCHAs — if someone else on your shared IP misbehaves, sites may challenge everyone on it.
How to tell: compare the WAN or internet address shown in your router’s admin page with the public IP on our home page. If they differ, or the router shows a 100.64–100.127 address, you’re behind CGNAT. Many ISPs will give you a public IP on request, sometimes for a small fee, and IPv6 avoids the problem entirely.
How to find your private IP address
- Windows: open Command Prompt, type
ipconfigand look for “IPv4 Address”. - macOS: System Settings → Wi-Fi → Details next to your network, or run
ipconfig getifaddr en0in Terminal. - iPhone: Settings → Wi-Fi → tap the ⓘ next to your network.
- Android: Settings → Network & internet → Wi-Fi → tap your network (the exact menu names vary by phone maker).
- Linux: run
ip addrorhostname -I.
How to find your public IP address
Your device doesn’t know its own public IP when it’s behind a router, so you need to ask something on the internet. Just open myiplookup.io — your public IP, ISP and approximate location appear instantly. You can also find it in your router’s admin page, unless you’re behind CGNAT.
Is it safe to share either one?
Private IPs are harmless to share — they’re meaningless outside your network, and huge numbers of people have the same one. Public IPs are visible to every site you visit anyway, so sharing one isn’t dangerous by itself. Still, avoid posting it publicly alongside your name. It can reveal your approximate area and make you a target for nuisance traffic. If that concerns you, see how to hide your IP address.