Two laptops in our test network sent a request from the exact same port. The website saw both coming from one address, 198.51.100.2, and quietly gave the second one a different port.
That detail explains public vs private IP addresses better than any definition. Your devices have private addresses that only work at home; the internet sees one public address.
We built that network, logged what each side saw, and checked our own machine’s two addresses too.
Public vs private IP address: the short answer
A private IP address identifies a device inside a local network, like your laptop at 192.168.1.50. It’s assigned by your router and can’t be reached from the internet.
A public IP address identifies your whole network on the internet. It’s assigned by your ISP, shared by every device at home, and it’s what websites see.
| Private IP | Public IP | |
|---|---|---|
| Who assigns it | Your router (DHCP) | Your ISP |
| Example | 192.168.1.50 | 198.51.100.2 |
| Unique? | Only inside your network | Unique on the internet |
| Reachable from the internet? | No | Yes |
| Shared? | One per device | Shared by every device at home |
| Seen by websites? | Never | Always |
| Cost | Free | Included; static ones often cost extra |
What is a private IP address?
A private IP address is one from three ranges set aside for local networks, so millions of homes can reuse the same numbers without clashing. Routers on the internet won’t carry traffic to them.
The three private ranges:
- 10.0.0.0 to 10.255.255.255, common in offices and some ISP equipment.
- 172.16.0.0 to 172.31.255.255, common in cloud servers and Docker.
- 192.168.0.0 to 192.168.255.255, what most home routers hand out.
Watch the middle one. 172.16 to 172.31 is private, but 172.32.0.1 is a public address. We ran a list of addresses through Python’s ipaddress module to check: 172.16.5.4 came back private, 172.32.0.1 came back public.
Your router gives private addresses to your devices through DHCP, usually starting at .2 or .100. That’s why the same laptop might be 192.168.1.50 today and 192.168.1.53 after a reboot.
What is a public IP address?
A public IP address is globally unique and reachable on the internet. Your ISP assigns one to your router, and every website, game server and app you connect to sees it.
On most home connections it changes now and then, because the ISP assigns it dynamically. If you need it to stay the same, for remote access or a server, you can usually pay for a static one. Our guide to static IP addresses covers when that’s worth it.
We checked our own test machine. Its network card reported 172.30.0.2, a private address. An IP checker reported a completely different public address, because the machine sits behind NAT like every home laptop.
Then a second checker surprised us: it returned an IPv6 address instead. Our connection had both, and that checker preferred IPv6. If two “what’s my IP” sites disagree, that’s usually why. Our IPv4 vs IPv6 guide explains what changes with the newer format.
Addresses that are neither: special ranges
Not every address is simply public or private. Several ranges are reserved for special jobs, and you’ll meet some of them when troubleshooting. We ran a set of them through Python’s ipaddress module, which flags whether an address is “private” or “global”:
address private global loopback link_local multicast reserved
127.0.0.1 True False True False False False
169.254.10.20 True False False True False False
100.64.0.2 False False False False False False
0.0.0.0 True False False False False False
255.255.255.255 True False False False False True
224.0.0.251 False True False False True False
192.0.2.10 True False False False False False
198.51.100.2 True False False False False False
203.0.113.10 True False False False False False
8.8.8.8 False True False False False False
::1 True False True False False True
fe80::1c2b:3aff:fe4d:5e6f True False False True False False
fd12:3456:789a::1 True False False False False False
2606:4700:4700::1111 False True False False False False
2001:db8::1 True False False False False False
Two results are worth knowing. First, Python’s “private” flag is broader than the three home ranges: it also marks loopback, link-local and documentation addresses as private, because none of them should appear on the public internet. Second, 100.64.0.2 came back as neither private nor global. That’s the shared range ISPs use for carrier-grade NAT, and it sits deliberately between the two.
| Range | Name | What it means |
|---|---|---|
| 127.0.0.0/8 (usually 127.0.0.1) | Loopback | The device talking to itself; never leaves the machine |
| 169.254.0.0/16 | Link-local (APIPA) | The device couldn’t get an address from DHCP |
| 100.64.0.0/10 | Shared address space (CGNAT) | Your ISP is sharing one public IP among customers |
| 0.0.0.0 | Unspecified | Means ‘any address’ in server settings; not a real destination |
| 255.255.255.255 | Broadcast | Sent to every device on the local network |
| 224.0.0.0/4 | Multicast | One sender, many receivers, such as device discovery |
| 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 | Documentation | Reserved for examples and tests, like the ones in our lab |
If your computer shows a 169.254 address, it didn’t get an address from the router at all. That’s a connection problem, not a setting to keep.
How NAT connects the two: what our test showed
NAT (network address translation) is the router feature that swaps a device’s private address for the public one on the way out, then swaps it back on the way in.
We built a small network with Linux network namespaces: two laptops on 192.168.1.50 and .51, a router with a public side of 198.51.100.2, and a website outside. Both laptops called the website from local port 40000.
# Two laptops behind one router, both using local port 40000
laptop A 192.168.1.50:40000 -> website sees 198.51.100.2:40000
laptop B 192.168.1.51:40000 -> website sees 198.51.100.2:33953
# The website tries to reach laptop A directly
curl http://192.168.1.50/ -> failed (exit 7): no route to a private address
Three things happened:
- The website saw one public address for both laptops. It had no idea two devices existed.
- The router rewrote the second port from 40000 to 33953, so replies wouldn’t get mixed up. That port swap is how one public IP serves dozens of devices.
- When the website tried to reach 192.168.1.50 directly, it failed instantly. There’s no route to a private address from the internet.

That third point is why your home devices are hidden by default, and why hosting anything at home needs extra work like port forwarding.
Which address do apps and websites see?
Websites, streaming services and ad networks see only your public IP. They can estimate your city and ISP from it, but not which device you’re on.
Your private IP shows up only inside your network: on the router’s device list, in printer settings, or when one computer shares files with another.
So when a site blocks “your IP”, it blocks everyone in your house. When a streaming service says you’re in the wrong country, it’s reading your public IP, which is why a VPN or proxy changes what it sees. Our breakdown of proxy vs VPN covers which one hides what.
How to find your public and private IP address
Private IP:
- Windows: open Command Prompt and run
ipconfig. Look for IPv4 Address. - Mac: System Settings, Network, your connection, Details. Or run
ipconfig getifaddr en0in Terminal. - Phone: Wi-Fi settings, tap your network.
Public IP:
- Search “what is my IP” or open any IP checker site.
- Or check the WAN or Internet section of your router’s admin page.
Compare the router’s WAN address with the IP checker. If they match, your router has a real public IP. If the router shows a 100.64 to 100.127 address, your ISP uses carrier-grade NAT and shares one public IP between many customers. That second layer of NAT is why some people can’t host game servers or reach home cameras from outside.

Public and private addresses in IPv6
IPv6 has the same idea with different numbers, plus one big change: there are enough addresses that NAT usually isn’t needed. Each device can get its own globally unique address.
| IPv6 range | Type | IPv4 equivalent |
|---|---|---|
| ::1 | Loopback | 127.0.0.1 |
| fe80::/10 | Link-local, on every interface | 169.254.x.x, but always present |
| fc00::/7 (in practice fd00::/8) | Unique local addresses | 10.x, 172.16-31.x, 192.168.x |
| 2000::/3 | Global unicast (public) | Public IPv4 |
| 2001:db8::/32 | Documentation | 192.0.2.0/24 and friends |
Our classification run agreed with these labels: fe80:: and fd12:: addresses came back as private, and 2606:4700:4700::1111 (a public DNS resolver) as global.
Because IPv6 devices can have public addresses, your router’s firewall does the job NAT did as a side effect: it blocks unsolicited incoming connections. Most operating systems also rotate temporary IPv6 addresses for outgoing traffic, so websites don’t see the same device address forever. Our IPv4 vs IPv6 guide covers the wider differences.
Static and dynamic, public and private
“Static” and “public” are often confused. They describe different things, and all four combinations exist:
| Private | Public | |
|---|---|---|
| Dynamic | Default at home; the router assigns from a pool | Default from most ISPs; can change after restarts |
| Static | A DHCP reservation or manual setting on the device | A fixed address from your ISP, often a paid add-on |
For most homes, the useful change is a static private IP (a DHCP reservation) for devices like printers, NAS drives or servers, so other devices and port-forwarding rules can always find them. A static public IP only matters if you host something that outsiders must reach at a fixed address.
Private and public IPs in the cloud
Servers have both kinds too. A typical cloud server or VPS gets a public IP for internet traffic and a private IP on the provider’s internal network, often in the 10.x range. Servers in the same account talk over the private network, which is faster, usually free of transfer charges and not exposed to the internet.
Docker adds another layer. Containers get private addresses on internal bridge networks, commonly in the 172.17 range, and the host forwards selected ports to them, much as a home router does. If you’ve ever seen a 172.17.0.2 address in logs, that’s a container talking.
Troubleshooting with IP addresses
Your addresses often tell you exactly what’s wrong:
| What you see | Likely meaning | What to do |
|---|---|---|
| Device has a 169.254.x.x address | No reply from the router’s DHCP | Restart the router and device; check the cable or Wi-Fi password |
| ‘IP address conflict’ warning | Two devices set to the same private IP | Use DHCP reservations instead of manual addresses |
| Router WAN shows 100.64.x.x | ISP uses CGNAT | Ask the ISP for a public IP, or use a tunnel for hosting |
| Router WAN shows 192.168.x.x or 10.x | Double NAT behind another router | Put the ISP box in bridge mode |
| Public IP changes often | Dynamic public IP | Use dynamic DNS or buy a static IP |
| Websites show the wrong country | Your IP’s location database entry is off, or you’re on a VPN | Check with an IP lookup; contact the ISP if it persists |
What a public IP lookup reveals
To see what websites learn from a public address, we ran our test machine’s own connection through three IP lookup services on 24 November 2026. The results were a useful surprise: the three services saw three different public addresses. One saw a Cloudflare address over IPv4, another saw a Cloudflare IPv6 address, and the third saw an address belonging to a regional Indian ISP in Uttar Pradesh. Our machine’s traffic leaves through a gateway, and different routes exit in different places.
That’s normal for VPNs, corporate networks and cloud machines, and it’s why “what is my IP” sites can disagree. For an ordinary home connection, you’ll usually see one IPv4 and one IPv6 address.
The lookup that saw the broadband address returned this kind of detail:
| Field returned | Example of what it showed | What it reveals |
|---|---|---|
| Reverse DNS (hostname) | None: the address had no PTR record | Nothing here, though many ISPs do publish one |
| City and region | A town in Uttar Pradesh, India | Approximate area, often off by tens of kilometres |
| Coordinates | A point near that town | The centre of a region, not your home |
| Organisation (ASN) | AS134375, a regional Indian ISP | Which company routes your traffic |
| Postal code | A nearby PIN code | A rough area, not an address |
| Time zone | Asia/Kolkata | Useful for sites to localise content |
Notice what’s missing: no name, no street address and no device details. The location is the area the ISP’s address block is registered to, which can be a different town. The other lookup placed its IPv6 address in Delhi under Cloudflare’s network, about 40 km away.
Still, the ISP name and town are enough for a site to localise content, and combined with cookies or a login they help build a profile. That’s why the privacy question below matters.
Is a private IP address safe?
Safer, not safe. A private address can’t be reached directly from the internet, so random scans hit your router, not your laptop. That’s a real benefit.
But NAT isn’t a firewall. Malware you download can still connect out, and a device that opens ports through UPnP undoes the protection. Keep your router’s firmware updated and its admin password changed from the default.
Your public IP is less private than people think. It reveals your rough location and ISP to every site you visit. It doesn’t reveal your name, but your ISP knows who had which address and when.
When you’d want a different public IP
Most people never need to think about it. A few situations change that:
- A site has blocked your IP, often after too many logins or a shared IP’s bad reputation.
- You’re managing several accounts on one platform and each needs its own address.
- You’re collecting public web data and requests from one IP get rate-limited.
- You want location privacy from sites and apps.
A VPN swaps your public IP for the VPN server’s. A proxy does the same for one app or browser. For account work or data collection, residential proxies give you IPs that belong to real home connections, which sites trust more than data-centre addresses.
Heads-up: our IPRoyal link is an affiliate link. If you buy through it, DroidCrunch earns a commission at no extra cost to you.
IPRoyal sells residential IPs by the gigabyte, which suits occasional use. Our explainer on residential proxies covers how they work, and the list of residential proxy providers compares the main options.
Frequently asked questions
Is 192.168 a public or private IP?
Private. Every address from 192.168.0.0 to 192.168.255.255 is reserved for local networks, which is why most home routers use 192.168.0.1 or 192.168.1.1. Millions of homes use the same 192.168 addresses at once without any conflict, because none of them are routed on the internet.
Can two devices have the same private IP address?
Not on the same network, because the router couldn’t tell them apart and both would lose connection. Devices on different networks can share one easily. Your laptop at 192.168.1.50 and your neighbour’s phone at 192.168.1.50 never meet, because each sits behind its own router.
Can someone find me with my public IP address?
Not directly. A public IP reveals your rough city and your ISP, not your name or street address. Only your ISP can link an IP to a customer at a given time, and it usually hands that over only to police with legal paperwork.
Does my public IP change?
On most home connections, yes, from time to time. ISPs assign dynamic addresses that can change when the router restarts or the lease runs out. Some keep the same one for months. If you need it fixed, ask your ISP for a static IP.
Is 100.64 a private IP address?
Not exactly. 100.64.0.0 to 100.127.255.255 is shared address space reserved for carrier-grade NAT. ISPs give it to customers’ routers and then share a smaller pool of public IPs between them. Like private addresses, it isn’t reachable from the wider internet.
Do I need to hide my private IP address?
No. Your private IP means nothing outside your own network, and thousands of other homes use the same one. Sharing a screenshot that shows 192.168.1.50 reveals nothing useful. Your public IP is the one worth protecting if location privacy matters to you.
What is the difference between a public IP and a static IP?
Public describes where an address works: on the internet. Static describes whether it changes. A public IP can be dynamic or static, and a private IP can be set as static on your router so a printer or server always keeps the same address.
What does a 169.254 IP address mean?
It means your device didn’t get an address from the router, so it gave itself a link-local address. It can talk to nearby devices but not the internet. Restart the router and the device, check the Wi-Fi password or cable, and make sure the router’s DHCP server is turned on.
The bottom line
A private IP names a device inside your network, and a public IP names your whole network on the internet. In our test, two laptops on separate private addresses looked like one public address to the website, and the router juggled ports to keep their replies apart.
For everyday use, you don’t need to change either. Hosting something at home? Compare your router’s WAN address with an IP checker first. If a site blocks you or you’re managing accounts, a VPN or proxy changes the public IP the world sees.



