.35.20.1192.168.1203.0.113.519212720312864321684211100000016800128643216842110101000101131286432168421000000012015128643216842100010100network part · 24 bits · 192.168.1host · 8 bits · 20/242³² = 4,294,967,296 addresses in all
Number blocks: the four octets of the address; each flips to its 8 bitsTeal: the network part (the street); blue: the host part (your house)Envelopes: a message travelling to an addressThe address 192.168.1.20 is four numbers, each one octet of 8 bits, so 32 bits in all (11000000.10101000.00000001.00010100). With the prefix /24 the first three numbers name the network (the street) and the last names the host (the house). Private ranges (RFC 1918) are reused inside homes and offices, 127.0.0.0/8 always means this device, and public addresses are unique worldwide. 2³² is about 4.3 billion addresses, which is not enough, so NAT and IPv6 exist. 192.168.1.20, 192.168.1.1 and 192.168.1.35 are private RFC 1918 addresses; 203.0.113.5 is an RFC 5737 documentation address standing in for a real public one.

Reading an address

  1. To get messages, a device on a network needs an address, like a house needs one for post. Your laptop's IPv4 address here is 192.168.1.20.

Network and host

Special ranges

The numbers, worked out

device       your laptop
IPv4 address 192.168.1.20
written as   dotted decimal (four numbers, three dots)

192.168.1.20, 192.168.1.1 and 192.168.1.35 are private RFC 1918 addresses; 203.0.113.5 is an RFC 5737 documentation address standing in for a real public one. Prefix lengths do not have to fall between the dots (for example /20); the subnets lesson shows how that works.