Skip to content
Log In Sign Up info@muvcloud.com

The Three Private IPv4 Ranges

PrefixAddressesOften used by
10.0.0.0/816,777,216Data centers, VPNs
172.16.0.0/121,048,576Docker, offices
192.168.0.0/1665,536Home routers

The middle block is the one people get wrong: it runs from 172.16.0.0 to 172.31.255.255. An address such as 172.32.0.1 or 172.15.0.1 is public. Anyone may use the three blocks inside a network without asking a registry.

Other Special Ranges

PrefixPurpose
127.0.0.0/8Loopback
169.254.0.0/16Link-local
100.64.0.0/10Shared address space
fc00::/7IPv6 unique local
fe80::/10IPv6 link-local

What Each Special Range Is For

  • Loopback: traffic to 127.0.0.1 never leaves the machine; see what is localhost.
  • Link-local: a host gives itself an address from 169.254.0.0/16 when it gets no answer from DHCP. Some cloud platforms also use an address in this block for their metadata service.
  • Shared address space: 100.64.0.0/10 was set aside in RFC 6598 for carrier-grade NAT between an internet provider and its customers. It is not an RFC 1918 range, but it is not public either, and some mesh VPN tools use it.
  • IPv6 unique local: in practice addresses start with fd, followed by a random 40-bit ID so that two networks are unlikely to collide.
  • Documentation: 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, and 2001:db8::/32 are reserved for examples, like the ones in these guides.

Why They Are Not Routed on the Internet

The same private range is in use in countless networks at once, so an address such as 192.168.1.10 does not identify one place. Internet routers carry no routes for these blocks, and networks filter packets that arrive from them. A device with a private address reaches the internet through NAT, which rewrites the source to a public address; see what is NAT. How to tell the two kinds apart is in public vs private IP.

Choosing a Range for a Private Network or VPN

Overlap is the thing to avoid. When a VPN client sits on a home network that uses 192.168.1.0/24 and the VPN also uses 192.168.1.0/24, the client cannot tell which side an address belongs to, and traffic goes to the wrong place.

  • Avoid the obvious blocks: 192.168.0.0/24, 192.168.1.0/24, and 10.0.0.0/24 are the defaults of many home routers.
  • Pick something unusual in 10.0.0.0/8: for example 10.47.12.0/24 for servers and 10.47.13.0/24 for VPN clients.
  • Check what is already in use: run ip route on the servers and on the machines that will connect.
  • Leave room: take each /24 from one larger block you write down, so later networks do not collide.

The VPN setup itself is in how to set up a WireGuard VPN server.

Docker's Default Ranges

Docker puts its default bridge, docker0, on 172.17.0.0/16 and gives each new user-defined network another block from its default pools, which take further space from 172.16.0.0/12 and from 192.168.0.0/16. On a server that must reach a private network in one of those ranges, a Docker network can take over the route and make that network unreachable. See which routes Docker added:

ip route | grep -E 'docker|br-'
docker network inspect bridge

To move Docker to other ranges, set bip and default-address-pools in /etc/docker/daemon.json and restart Docker; networks that already exist keep their ranges until they are recreated. See Docker networks explained.

See the Ranges on a Server

ip -br a
ip route

A server often has a public address on one interface and a private one on another, for traffic between servers. Services that only those servers need, such as a database, can listen on the private address alone.

Updated:

Linux VPS with Full Root Access

MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.

Cloud VPS Plans Starting at2.99 $/mo Cheap Linux VPS

No Limits on Service or Support

You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

Support specialist
  • 100% customer satisfaction goal
  • Our own hardware
  • 24/7 ticket and email support
  • 4 countries with locations