The street address of a device on a network. IPv4, IPv6, public, private and subnets.
An IP address is the address of a device on a network. It tells data where to go and where it came from.
192.168.1.10. About 4.3 billion addresses.2001:db8::1. An almost endless number of addresses./24) tells how big.Every device that talks on a network (phone, laptop, server) needs an address, so replies know where to return. This is the Internet Protocol (IP) address. It works at the Network layer (layer 3) of the OSI model.
An IPv4 address has 32 bits, split into 4 octets (8 bits each). Each octet is a number from 0 to 255. We write them with dots.
IPv4 is running out. IPv6 has 128 bits, written as 8 groups of hex numbers, like 2001:0db8:0000:0000:0000:0000:0000:0001. We can shorten it: leading zeros can go, and one run of zero groups becomes ::. So that address becomes 2001:db8::1.
| Private range | CIDR | Size |
|---|---|---|
| 10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 | About 16.7 million |
| 172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 | About 1 million |
| 192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 | 65,536 |
| Address | Meaning |
|---|---|
| 127.0.0.1 | Loopback (localhost). This computer itself. |
| 0.0.0.0 | "Any address" or "unknown". Servers use it to listen on all interfaces. |
| 169.254.x.x | Link-local. A device gave itself an address because no DHCP answered. |
| 255.255.255.255 | Broadcast to every device on the local network. |
| 224.0.0.0 – 239.255.255.255 | Multicast. Sent to a group of devices. |
A subnet is a smaller network inside a bigger one. CIDR notation writes the address followed by a slash and the number of network bits: 192.168.1.0/24 means the first 24 bits are the network and the last 8 bits are for hosts. That gives 2⁸ = 256 addresses, and 254 can be used for devices (the first is the network address, the last is the broadcast address).
| CIDR | Subnet mask | Total addresses | Usable hosts |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 |
| /16 | 255.255.0.0 | 65,536 | 65,534 |
| /24 | 255.255.255.0 | 256 | 254 |
| /28 | 255.255.255.240 | 16 | 14 |
| /30 | 255.255.255.252 | 4 | 2 |
Click any bit to flip it, or type a number. Each box is one byte (an octet).
10.0.0.0/16.| Term | Meaning in easy words |
|---|---|
| IP address | A number that identifies a device on a network. |
| IPv4 | 32-bit addresses written in 4 dotted numbers. |
| IPv6 | 128-bit addresses written in hex groups. |
| Octet | One group of 8 bits (a number from 0 to 255). |
| Subnet | A smaller network inside a bigger one. |
| Subnet mask | Shows which bits are network and which are host (for example 255.255.255.0). |
| CIDR | Notation like /24 that gives the number of network bits. |
| Default gateway | The router your device uses to reach other networks. |
| DHCP | A service that gives IP addresses automatically. |
| NAT | Network Address Translation. A router shares one public IP among many private devices. |
| Loopback | 127.0.0.1. Your own computer. |
| MAC address | A hardware address used inside a local network (layer 2). |
| Choice | We gain | We lose |
|---|---|---|
| Big subnet (/16) | Lots of room to grow | Wastes addresses, bigger blast area |
| Small subnet (/28) | Tight and neat | Runs out of hosts quickly |
| NAT with private IPs | Saves public IPs, hides devices | Harder to connect from outside |
| IPv6 | Huge address space | Needs support everywhere, people less familiar |
10.0.0.0/16 cannot be joined easily.