Have you ever wondered why almost every home Wi-Fi router in the world assigns your laptop an IP address starting with 192.168.x.x or 10.0.x.x? The answer lies in a document published in 1996 called RFC 1918, which completely saved the internet from collapsing.
Understanding the difference between Public IP addresses and Private IP addresses is one of the most foundational concepts in networking. Let's break down exactly what they are and how Network Address Translation (NAT) makes them work together.
The IPv4 Exhaustion Problem
IPv4 was invented in the early 1980s. It provides roughly 4.3 billion unique IP addresses. Back then, it seemed impossible that we would ever run out. But by the 1990s, with the explosion of personal computers and the early web, engineers realized a terrifying truth: we were going to run out of IPs very quickly.
To delay the internet breaking while they invented IPv6, engineers created a stop-gap solution: Private IP Addresses.
What is a Private IP Address?
A private IP address is an address that is entirely unroutable on the global internet. Think of it like a local extension line in an office building. If you are inside the building, you can dial extension "105" and reach Bob. But someone outside the building cannot call "105" directly—they have to call the building's main phone number first.
The IETF defined three specific ranges of IPv4 addresses to be used strictly for private, internal networks:
- Class A Range:
10.0.0.0to10.255.255.255(Used by large enterprises) - Class B Range:
172.16.0.0to172.31.255.255(Used by medium businesses and AWS/Docker) - Class C Range:
192.168.0.0to192.168.255.255(Used by almost all home routers)
Check Your Subnet Class
Want to see if your IP address is Public or Private? Type it into our main subnet calculator and it will instantly tell you its Class and Network Type.
Use the Subnet Calculator →What is a Public IP Address?
A Public IP address is assigned by your Internet Service Provider (ISP). It is globally unique and completely routable across the public internet. This is the "main phone number" to your building.
How Do They Communicate? (Enter NAT)
If your laptop has a private IP of 192.168.1.50, and private IPs are blocked on the internet, how are you reading this website right now?
The answer is Network Address Translation (NAT). Your home router acts as a middleman. When your laptop requests a webpage, the router takes your packet, strips off your private 192.168.1.50 IP, slaps its own Public IP on it, and sends it to the server. When the server replies, the router remembers that you asked for the page and forwards the data back to your local, private IP.
Because of NAT and Private IPs, thousands of internal devices can share a single Public IP address, effectively saving the IPv4 internet from total exhaustion for the last 30 years!