IP addresses
A letter needs an address. On a network, that address is the IP address. Almost everything in hacking starts with finding the right address to look at — so this concept is foundational.
What an IP address looks like
Every device on a network gets an IP address (IP = "Internet Protocol") so the network knows where to deliver its letters. The common kind looks like four numbers separated by dots:
192.168.1.20
Each number ranges from 0 to 255, so addresses run from 0.0.0.0 to 255.255.255.255. That's about four billion possibilities — sounds huge, but the world actually ran out, which is why a newer, much larger system called IPv6 exists. Those addresses are longer, full of letters and colons like 2001:db8::1.
For learning, the four-number style (called IPv4) is all you need.
Both are in active use — most home networks still use IPv4 internally. If you see an address with colons like fe80::1, that's IPv6. You'll meet it more as you progress.
Private vs public — the building analogy
This trips up many beginners, so let's nail it with an apartment-building analogy.
[Private and public IP addresses]
Imagine a large apartment building on a street:
- Private IP — your flat number inside the building. It only makes sense inside your home network. Your phone might be
192.168.1.20, your laptop192.168.1.21. These same numbers are reused in millions of homes because they never leave the building. - Public IP — the building's street address that the postal service uses. The whole internet sees this single address for your entire home. Your router holds the public IP and cleverly sorts incoming mail to the right flat inside using a process called NAT (Network Address Translation).
The private IP ranges
There are three "private" address ranges you'll see everywhere:
| Range | Common use |
|---|---|
10.0.0.0 – 10.255.255.255 |
Big companies |
172.16.0.0 – 172.31.255.255 |
Medium networks |
192.168.0.0 – 192.168.255.255 |
Home networks (very common) |
Subnet masks and CIDR notation — describing a range of addresses
You'll constantly see addresses written like 192.168.1.0/24 throughout later paths (Path 12's Nmap lessons, Path 08's cloud networking lesson) — that /24 is CIDR notation, and it's worth understanding now rather than treating it as magic later. It describes how many addresses belong to one network: /24 means the first 24 bits (the first three of the four numbers) identify the network, leaving the last 8 bits free to number individual devices — giving you 192.168.1.0 through 192.168.1.255, 256 addresses total. A smaller number after the slash means a larger range of addresses (/16 covers 65,536 addresses), which can feel backwards at first but becomes intuitive with practice. This notation is exactly how a penetration test's scope document (Path 14) specifies which entire ranges of addresses are authorized for testing, rather than listing every individual IP by hand.
Static vs. dynamic IPs — and DHCP
Most devices on a home network don't have a permanently fixed private IP — instead, your router runs a service called DHCP (Dynamic Host Configuration Protocol), automatically assigning each device an available address from its private range whenever it joins the network. This is called a dynamic IP, and it can change over time (e.g., after your device reconnects). A static IP is manually configured to never change — commonly used for servers, printers, or anything else that other devices need to reliably find at the same address every time. Understanding this distinction matters directly for Path 12's network scanning material: a device you scanned yesterday at 192.168.1.20 might genuinely be a different physical device today if it's using a dynamic IP and simply reconnected.
Special addresses worth knowing
127.0.0.1— called localhost or the loopback address. It always means "this very computer." When you build something and test it "on localhost," you're talking to your own machine.- Addresses ending in
.255are often broadcast addresses (a message to everyone on the local network). 0.0.0.0can mean "all addresses" in some settings.
When you install a web server and visit http://127.0.0.1 or http://localhost, you're testing your own machine. That's how you develop and test safely without touching the internet.
Try it yourself
You can view your device's IP with a single command:
# Linux or Mac — open a terminal:
ip a
# An older command that also works:
ifconfig
# Windows — open Command Prompt:
ipconfig
🧪 Lab — Find your addresses
- Open a terminal (Linux/Mac) or Command Prompt (Windows).
- Run
ip a(oripconfigon Windows) and press Enter. - The output looks busy — that's normal. Find a line with a number like
192.168.x.xor10.x.x.x. That's your device's private IP. - Now open a browser and search "what is my IP". The number shown is your public IP — the street address the internet sees for your whole home.
- Notice that ten devices in your home might have ten private IPs but only one public IP.
Why attackers care about IPs
To attack or scan a machine, you first need its address — just as a burglar needs to know which house. A huge part of hacking (which you'll learn in the recon lessons) is simply finding the right addresses to look at.
- On a pentest: you receive a list of IP ranges as your scope.
- In bug bounty: you resolve subdomains to IPs and enumerate what's exposed.
- In defence: you monitor which IPs your systems talk to — outbound connections to unusual addresses are red flags.
Which IP address always means "this very computer I'm sitting at"?
Show answer
127.0.0.1 — known as localhost or the loopback address.Key terms
- IP address — a device's address on a network.
- IPv4 / IPv6 — the older 4-number system and the newer larger one.
- Private IP — works only inside your local network (like a flat number).
- Public IP — the single address the internet sees for your home.
- localhost / 127.0.0.1 — "this computer."
- NAT — how your router maps between private and public addresses.
Recap
- IPv4 addresses are four numbers 0–255 separated by dots.
- Private IPs work only inside your home; public IPs face the internet.
127.0.0.1(localhost) always means your own machine.- NAT lets many devices behind one public IP.
References
- What is an IP address? — Cloudflare — clean beginner explanation.
- IPv4 vs IPv6 — Comparitech — the differences and why we're moving.
- Private IP address ranges — Wikipedia (RFC 1918) — the standards.
- whatismyipaddress.com — quick public IP + location lookup.
Next up → Subnetting & CIDR notation