You are here
What are public IP addresses, private IP addresses and reserved IP addresses?
What are public IP addresses, private IP addresses and reserved IP addresses?
In the Internet age, I believe most people who can surf the Internet should not be very unfamiliar with IP addresses. However, IP addresses are classified as public addresses, private addresses, and reserved addresses, which may not be well understood by many people. So, what exactly are public IP addresses, private IP addresses and reserved IP addresses? What is the difference between them? Please see the following introduction.
What’s a reserved IP address?
Reserved IP addresses refer that the IANA keeps some IP address down in the range of IP address and make them used as private IP address space or for special purposes such as internal LAN. For example, 255.255.255.255 is a reserved IP address. A network using reserved addresses can only communicate internally and cannot interconnect with other networks.
Address block | Address range | Number of addresses | Scope | Description |
---|---|---|---|---|
0.0.0.0/8 | 0.0.0.0–0.255.255.255 | 16,777,216 | Software | Current network (only valid as source address). |
10.0.0.0/8 | 10.0.0.0–10.255.255.255 | 16,777,216 | Private network | Used for local communications within a private network. |
100.64.0.0/10 | 100.64.0.0–100.127.255.255 | 4,194,304 | Private network | Shared address space for communications between a service provider and its subscribers when using a carrier-grade NAT. |
127.0.0.0/8 | 127.0.0.0–127.255.255.255 | 16,777,216 | Host | Used for loopback addresses to the local host. |
169.254.0.0/16 | 169.254.0.0–169.254.255.255 | 65,536 | Subnet | Used for link-local addresses between two hosts on a single link when no IP address is otherwise specified, such as would have normally been retrieved from a DHCP server. |
172.16.0.0/12 | 172.16.0.0–172.31.255.255 | 1,048,576 | Private network | Used for local communications within a private network. |
192.0.0.0/24 | 192.0.0.0–192.0.0.255 | 256 | Private network | IETF Protocol Assignments. |
192.0.2.0/24 | 192.0.2.0–192.0.2.255 | 256 | Documentation | Assigned as TEST-NET-1, documentation and examples. |
192.88.99.0/24 | 192.88.99.0–192.88.99.255 | 256 | Internet | Reserved. IPv6 to IPv4 relay (included IPv6 address block 2002::/16). |
192.168.0.0/16 | 192.168.0.0–192.168.255.255 | 65,536 | Private network | Used for local communications within a private network. |
198.18.0.0/15 | 198.18.0.0–198.19.255.255 | 131,072 | Private network | Used for benchmark testing of inter-network communications between two separate subnets. |
198.51.100.0/24 | 198.51.100.0–198.51.100.255 | 256 | Documentation | Assigned as TEST-NET-2, documentation and examples. |
203.0.113.0/24 | 203.0.113.0–203.0.113.255 | 256 | Documentation | Assigned as TEST-NET-3, documentation and examples. |
224.0.0.0/4 | 224.0.0.0–239.255.255.255 | 268,435,456 | Internet | In use for IP multicast. (Former Class D network). |
240.0.0.0/4 | 240.0.0.0–255.255.255.254 | 268,435,455 | Internet | Reserved for future use. (Former Class E network). |
255.255.255.255/32 | 255.255.255.255 | 1 | Subnet | Reserved for the "limited broadcast" destination address. |
What’s a private IP address?
Private network also called local area network(LAN), is a small part of the Internet in terms of scope, and generally refers to the network formed under a specific environment. For example, a network formed by interconnecting multiple computers in a home, or a large LAN within schools and companies. The private network can access the public network through a router. The private IP addresses are usually 192.168.1.100, 172.18.8.101, 10.8.10.10 and so on. There are 3 IP address segments reserved in the IPv4 address protocol as private addresses for the internal use of the organization.
From the definition of IANA, the private IP address is also classified as a reserved IP address.
Class | Address range | Number of addresses | Number of networks |
---|---|---|---|
Class A | 10.0.0.0 ~ 10.255.255.255 | 16777216 | 1 Class A |
Class B | 172.16.0.0 ~ 172.31.255.255 | 1048576 | 16 Class C |
Class C | 192.168.0.0 ~ 192.168.255.255 | 65536 | 256 Class C |
What’s a public IP address?
Public network, also called wide area network(WAN), is a remote network that connects computers in different regional local area networks or metropolitan area networks for communication. It can usually span a large physical range, connect multiple regions, cities and countries to provide long-distance communication, forming global Internet. Each host connected to an extranet has a public IP address, such as 221.234.147.249, 182.16.1.100. The overwhelming majority of IP addresses are public addresses and need to apply for registration with the international Internet administrative agency.
IPv4 public addresses:
Except for reserved IP addresses, all other IP addresses are public IP addresses.
How to translate between public IP address and private IP address?
Public IP addresses and private IP addresses can be translated to each other by using NAT (Network Address Translation) technology to perform address mapping. Generally, it is mainly to let the private IP address device access the external services through the public IP address of the gateway. It is also possible to map multiple ports of the public IP address of the gateway to different private IP address devices.
Is the IP address in IPv6 also classified as public IP addresses, private IP addresses and reserved IP addresses?
There are two types of IP addresses: IPv4 and IPv6. Public IP addresses, private IP addresses and reserved IP addresses exist both of them. The private address of IPv6 can be expressed as fd00:: / 8 in the way of CIDR, and the quantity of private IP addresses in IPv6 is much larger than that of IPv4.
What is the difference between public IP address, private IP address and reserved IP address?
To sum up, simply put, public IP address refers to the address of the host on the whole Internet. Private IP address is the address of the LAN within a small area such as home, companies and campus, which is allocated by a switch or router. The use of reserved IP addresses is more special, and it cannot be connected with other network IP addresses in general.