Private vs Public IP Addresses in Networking
Public IP addresses are globally routable on the Internet, while private IP addresses (defined in RFC 1918) are restricted to local networks and require NAT to access the Internet.
What are Public IP Addresses?
**Public IP addresses** are globally unique and routable on the public Internet. They are assigned by an ISP or a regional Internet registry. Servers, public-facing routers, and websites must have public IPs to be reachable by anyone globally.
RFC 1918 Private IP Addresses
Because IPv4 addresses are exhausted, **RFC 1918** reserved specific ranges for local, internal use. These are **Private IP addresses**. The ranges are: - **10.0.0.0/8** - **172.16.0.0/12** - **192.168.0.0/16** These IPs are not routable on the public internet.
The Role of NAT
For devices using private IPs to reach the Internet, a router or firewall must perform **Network Address Translation (NAT)**. NAT translates private internal IP addresses into a single (or pool of) public IP addresses before traffic is forwarded to the ISP.
❓ Frequently Asked Questions
Can a private IP be routed on the internet?
No, internet routers will drop packets originating from or destined to RFC 1918 private IP addresses.
What is the 10.x.x.x network?
It is a Class A private IP address range defined by RFC 1918.
Why do we use private IPs?
To conserve the limited pool of public IPv4 addresses and add a layer of security.