IP addresses
The house-number idea
Section titled “The house-number idea”Your phone, laptop and games console all sit on the same home network, like houses on one street. The router is the post office. To deliver anything, it needs each house’s number: its IP address (IP stands for Internet Protocol).
IPv4: four numbers, 32 bits
Section titled “IPv4: four numbers, 32 bits”An IPv4 address is four numbers separated by dots, for example 203.0.113.5.
- Each number is an octet: 8 bits, so it can only be 0 to 255.
- Four octets make 32 bits, which allows about 4.3 billion addresses.
The same address in binary:
| Decimal | 203 | 0 | 113 | 5 |
|---|---|---|---|---|
| Binary | 11001011 |
00000000 |
01110001 |
00000101 |
You won’t convert by hand often, but bits are what CIDR counts, so it helps to see them once.
IPv6: the bigger version
Section titled “IPv6: the bigger version”The world ran out of IPv4 addresses, so IPv6 uses 128 bits, written as eight groups of hex digits, such as 2001:db8::1. The :: stands in for a run of zero groups. Most networks run both IPv4 and IPv6 side by side.
How a device gets one
Section titled “How a device gets one”When you join a network, your device asks the router for an address and the router hands one out. That’s DHCP, which runs on ports 67 and 68. Servers usually have a fixed address set by hand instead.
Try it: find your own
Section titled “Try it: find your own”| System | Command | Look for |
|---|---|---|
| macOS | ipconfig getifaddr en0 |
The address of your Wi-Fi (en0 is usually Wi-Fi) |
| Windows | ipconfig |
IPv4 Address |
| Linux | ip addr |
The inet line under your network card |
The number you see is almost certainly a private one. Why it differs from the address websites see is the next-but-one page, Public and private addresses.
Why analysts care
Section titled “Why analysts care”- Logs are full of them. Who connected to what is usually written as source IP and destination IP.
- They’re indicators, with limits. One public IP can host thousands of websites, and attackers change addresses often. An IP is a lead, not a verdict.
- Defang them in reports. Write
203.0.113[.]5so a malicious address can’t be clicked or auto-linked.
127.0.0.1 and localhost: the one address every computer gives itself.

One Reverse Look
"A little learning is a dangerous thing." ~ A. Pope
One Reverse Look · Made with ❤ · Your friendly knowledge seeker

