Concepts / Addressing

Addressing

Private addresses

Also called RFC 1918, 10.0.0.0/8, 192.168, loopback, 127.0.0.1

Address ranges any organisation may use inside, never routed on the internet: 10/8, 172.16/12, 192.168/16.

Private addresses work inside and never travel outside
Private addresses work inside and never travel outside

10/8, 172.16/12 and 192.168/16 are free for any network to use, so millions of homes all have a 10.0.1.10, and no router on the internet carries routes to them. To get out, NAT on the gateway swaps the private source for its public address, 203.0.113.5. Nothing outside can start a connection to 10.0.1.10 itself. 127.0.0.0/8 is different again: loopback, the machine talking to itself.

Homes and offices number their devices from these ranges and reach the internet through NAT. 127.0.0.1 is loopback: the machine itself, never on the network, so a service listening only there is reachable only locally.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab