Public vs Private IP Addresses
Private IP addresses only work inside a local network; public IPs are routable on the internet. The distinction is defined by three reserved ranges, and confusing them causes a whole genre of configuration failure.
The private ranges (RFC 1918)
| Range | Size | Typical use |
|---|---|---|
| 10.0.0.0/8 | 16.7M addresses | Large enterprise networks |
| 172.16.0.0/12 | 1M addresses | Mid-size networks, some clouds |
| 192.168.0.0/16 | 65k addresses | Home routers, small offices |
How they relate
Your laptop holds a private address (192.168.1.x from the router). Your router holds the single public IP (from your ISP) and translates between the two via NAT. Everything behind the router shares the public identity. Cloud VPCs work the same way at larger scale: instances get private IPs, a gateway holds the public one.
Where the confusion bites
- Publishing a private IP in a public DNS record: the site resolves only inside your network.
- Expecting a private IP to be reachable remotely: it is not routable, by design.
- Firewall rules written for the public interface applied to private ranges (or vice versa).
- Assuming a public address is fixed: whether it changes depends on the assignment, and the Static vs Dynamic IP Addresses guide shows how to tell which one you have.
- Embedding private IPv4 ranges inside the global NAT64 prefix (
64:ff9b::/96) fails on the internet; verify the Local-Use64:ff9b:1::/48and dual-stack::ffff:forms with the IPv4 to IPv6 converter.
Frequently asked questions
Which one is my real IP?+
For the internet: the public one (our What Is My IP tool shows it). The 192.168.x.x address on your laptop is local-only.
Can two networks use the same private IPs?+
Yes, constantly: millions of homes all use 192.168.1.x. They never see each other, so no conflict.
Are private IPs more secure?+
They are unreachable from outside, which is its own protection, but it is not a substitute for host security.
What about 127.0.0.1?+
That is the loopback: the machine itself, a third category entirely (link-local and loopback are also non-routable).
Can I make a private server public?+
Only by exposing it through the gateway: port forwarding, a reverse proxy, or a public load balancer.
Do cloud providers use these ranges?+
Yes: VPCs in AWS, Azure, and GCP are built on private ranges with public gateways.
Related
- NAT explained →
- What Is My IP →
- Reserved IP ranges →
- CIDR / Subnet Calculator →
- Reserved IP ranges, the full address map
- NAT explained, the translation that makes private ranges work
- What is my IP, see the public address you present
Last verified: 2026-12-01