Krill KitsKrill Kits// A swarm of small, sharp tools for letters, numbers, and units.
§ 01 / ARTICLE

Public vs Private IP. Two Addresses.

CATEGORY NETWORKREAD 5 MINPUBLISHED APR 21, 2026

Your phone has two IP addresses: a private one on your home Wi-Fi (probably 192.168.something), and a public one the internet sees. Both are real, both belong to your phone, and your router quietly translates between them every time you load a page.

The split, in one sentence

Private IPs are reserved ranges that work only inside a local network; public IPs are globally routable on the internet. NAT (Network Address Translation) is the trick that lets a whole houseful of private-IP devices share one public IP at the front door.

The three private ranges (RFC 1918)

  • 10.0.0.0/8 — 16,777,216 addresses. Common in enterprises, AWS VPCs, larger home setups.
  • 172.16.0.0/12 — 1,048,576 addresses. Less common at home; popular in Docker default networks.
  • 192.168.0.0/16 — 65,536 addresses. The default for almost every consumer router. 192.168.1.x and 192.168.0.x are the most common subranges.

How NAT translates

Your phone (private 192.168.1.42) opens a connection to a website. The packet leaves your phone with source 192.168.1.42; your router rewrites the source to its public IP before sending it out. When the response comes back to the public IP, the router remembers which device started the conversation and forwards the response to the right private address. That whole dance is NAT.

// TRY THE TOOL
SEE YOUR PUBLIC IP.

What does the rest of the internet see when you connect? One click reveals it.

OPEN →

CGNAT — when even your “public” IP is shared

Some ISPs give you an address in 100.64.0.0/10 (RFC 6598, Carrier-Grade NAT). Your router thinks it has a public IP, but it’s really sitting behind another layer of the ISP’s NAT. Multiple customers share one true public address. Symptom: you can’t port-forward to host a server from home — the ISP’s NAT drops inbound traffic.

The takeaway

When a website asks for “your IP,” it means the public one. When you configure a printer or NAS, you almost always want the private one. The two are not interchangeable, and confusing them is the source of about half of all home-network headaches.

§ 02 / FAQ

Questions. Answered.

How can two IPs both belong to one device?+
Your device has a private IP on the local network (handed out by your router via DHCP) and a public IP that the rest of the internet sees (handed to your router by your ISP). NAT translates between them. Most home networks use 192.168.x.x or 10.x.x.x for private; the public address is whatever your ISP gave you.
What are the private IP ranges?+
Three of them, defined by RFC 1918: 10.0.0.0/8 (Class A, 16M addresses), 172.16.0.0/12 (Class B, 1M), and 192.168.0.0/16 (Class C, 65K). Anything in those ranges won’t route on the public internet — routers will drop it.
What’s CGNAT?+
Carrier-grade NAT — RFC 6598, range 100.64.0.0/10. ISPs that ran out of public IPv4 use CGNAT to share one public address among many customers. If you can’t host a server from your home connection, this might be why — your router thinks it has a public IP but the ISP’s NAT is in the way.
Does IPv6 still need private addresses?+
Less so. IPv6 has so many addresses that every device can have a globally unique one. But there are link-local (fe80::/10, automatic on every interface) and unique local (fc00::/7, opt-in private) ranges. Most home IPv6 setups use the global address directly with firewall rules instead of NAT.
§ 03 / TOOLS

Related calculators.

§ 04 / READING

Keep reading.