Skip to content
Portfolio

Public vs. Private IP Addresses

Public addresses are globally unique identifiers and are Internet-routable.

  • Assignment: They are assigned and regulated by Internet Service Providers (ISPs) under the coordination of global authorities like IANA and RIRs (such as RIPE, ARIN, etc.).
  • Visibility: Any device directly connected to the global network requires a public IP to be reachable from the outside (web servers, edge routers, etc.).
  • Cost: They are usually limited and often have an associated cost, especially commercial static IPs.

Private addresses are reserved exclusively for use within a Local Area Network (LAN).

Routing Rule: They are not routable on the Internet. If a core internet router detects a packet with a private IP as its source or destination, it drops it immediately for security reasons.

The private addressing space is defined by the RFC 1918 standard, which divides these IPs into three main blocks based on network size (adapted classful addressing):

ClassPrivate Network RangeAvailable IPs per BlockTypical Use / Use Cases
Class A10.0.0.010.255.255.255~16.7 millionLarge corporations (Enterprise), cloud infrastructures (AWS/Azure VPCs).
Class B172.16.0.0172.31.255.255~65,536 per subnetMedium-sized networks, educational campuses, container environments (Docker/LXC).
Class C192.168.0.0192.168.255.255256 per subnetHome networks (SOHO residential routers) and small offices.