IP Addresses

IP addresses are in simple terms, how computers know how to talk to each other.

For example, if you have on your home network a computer with the IP 192.168.0.1 and another with 192.168.0.2, these computers can go via the gateway to send messages between each other.

There are two kind of IP address spaces you need to care about, public and private.

The key difference between the two, is that private IP addresses can be duplicated across the internet, because they're only ever exposed internally, in addition to being "reserved".

IPV4

The most common type of IP address out there, is IPV4

A IPV4 address is structured with 4 octets. Each of these octets can contain the values 0-255, meaning that there are only 256*256*256*256 = 4,294,967,296 available IPV4 addresses.

An IPV4 address is made of 4 octets. Each octet is one block of 8 bits, and together they build the full address.

First octet
Second octet
Third octet
Fourth octet
Full address: 192.168.0.1
Private address

Private IPV4 ranges

RFC 1918 nameIP address rangeNumber of addresses
24-bit block10.0.0.0 - 10.255.255.25516,777,216
20-bit block172.16.0.0 - 172.31.255.2551,048,576
16-bit block192.168.0.0 - 192.168.255.25565,536