What is an IP address, really?
Stage 0 · Lesson 1 · 10 minutes · No prerequisites
The one-line answer
An IP address is the delivery address of a device on a network. Without it, data has nowhere to go.
Why you should care
Every single thing in cybersecurity happens between two IP addresses. An attacker scanning a company, a hacker exfiltrating data, a firewall blocking traffic, a SOC analyst investigating an alert at 3am — all of it is one IP talking to another IP.
When a security incident happens, the very first question anyone asks is: which IP did this come from?
If IP addresses are fuzzy to you, every later topic stays fuzzy. So we start here.
How it actually works
Think of the postal system. To deliver a letter, you need an address that's unique enough to identify one building. Networks work the same way.
An IPv4 address looks like this:
192.168.1.14Four numbers, separated by dots. Each number can be 0 to 255.
Why 255? Each number is stored in 8 bits. Eight bits can represent 256 different values (0 through 255). Four sets of 8 bits = 32 bits total. That's why IPv4 is called a 32-bit addressing system.
That gives about 4.3 billion possible addresses — which sounded like plenty in 1981 and ran out around 2011.
Public vs private addresses
This distinction matters enormously in security.
Public IP — unique on the entire internet. Your home router has one. Google's servers have them. If you know a public IP, you can send traffic to it from anywhere in the world.
Private IP — only unique inside one local network. Your laptop, phone and smart TV all have private IPs assigned by your router. These addresses are reused in millions of homes simultaneously.
Three ranges are reserved as private:
| Range | Commonly seen in |
|---|---|
10.0.0.0 – 10.255.255.255 | Corporate networks |
172.16.0.0 – 172.31.255.255 | Docker, mid-size networks |
192.168.0.0 – 192.168.255.255 | Home routers |
If you see 192.168.1.5, you're looking at a device on someone's local network. That address means nothing on the public internet.
One special address: 127.0.0.1, called localhost or loopback. It always means "this machine, right here." When you run a web server on your own computer and visit 127.0.0.1, you're talking to yourself. You'll use this constantly.
IPv6, briefly
Because IPv4 ran out, IPv6 was created. It looks like this:
2001:0db8:85a3:0000:0000:8a2e:0370:7334128 bits instead of 32. The number of possible addresses is genuinely absurd — roughly 340 undecillion. You don't need to master IPv6 now, but you should recognise it when you see it, and know that security tools and firewall rules sometimes cover IPv4 but forget IPv6. That gap is a real finding in real assessments.
See it yourself
Do this right now — it takes 30 seconds.
Find your private IP:
- Windows: Open Command Prompt, type
ipconfig - Mac/Linux: Open Terminal, type
ifconfigorip addr
Look for something starting with 192.168. or 10.. That's your device's address on your local network.
Find your public IP:
Visit whatismyip.com, or run:
curl ifconfig.meThat's the address the entire internet sees you as. Notice it's completely different from your private one — your router translates between them. That process is called NAT (Network Address Translation), and it's the reason a hundred devices in your house can share one public address.
Ping something:
ping google.comWatch the output. Google's name resolved into an IP address, and your machine sent small packets to it. Those replies are proof of a live conversation between two addresses.
How attackers abuse this
Now the part that makes this a security lesson and not a networking class.
Reconnaissance starts with IP ranges. Companies own blocks of public IPs. An attacker's first move is finding which ones belong to the target — then scanning every address in that block for live hosts.
Leaked private IPs are a real finding. When an application error page or HTTP header reveals 10.0.4.22, it's just told the attacker about internal network structure they weren't supposed to see. It's low severity alone, but it's a piece of the map.
IP-based access control gets bypassed. Some applications trust the X-Forwarded-For header to decide who you are. Attackers set that header to 127.0.0.1 and suddenly the application thinks the request came from the server itself — and grants admin access. This is a genuinely common bug.
Attribution is hard because IPs lie. VPNs, proxies, Tor and compromised machines mean the IP in a log is often not the attacker's real location. Blue teamers learn quickly that "we found the IP" is the start of an investigation, not the end.
Common mistakes
"My IP address is my identity." No. Most home connections use dynamic IPs that change periodically. Many users share one public address via NAT. An IP identifies a connection point, not a person.
"Private IPs are safe from attack." Only from outside. Once an attacker has any foothold inside the network — a phished employee, a compromised web server — private IPs become the entire attack surface. That's called lateral movement.
"Hiding my IP makes me anonymous." A VPN changes which IP a site sees. It doesn't hide your browser fingerprint, your login cookies, or the fact you logged into your own account.
Check yourself
- Your laptop shows
192.168.0.8. Is that a public or private address, and how do you know? - Why can two different homes both have a device at
192.168.1.1without conflict? - An application error message exposes
10.2.15.7. Why might a penetration tester note this down?
Answers
- Private — it falls in the reserved
192.168.0.0–192.168.255.255range. - Private addresses are only unique within a local network. The router translates them to a single shared public IP using NAT, so there's no conflict on the internet.
- It leaks internal network structure. It tells the tester the organisation uses the
10.x.x.xrange internally and hints at how their network is segmented — useful for planning lateral movement after any initial foothold.
Your lab
Challenge 01 — Exposed secrets
If you tried the terminal on the homepage, you already know the idea. The lab version is your first official flag: a company's robots.txt points straight at something it should never have published. It takes about five minutes.
→ Open Stage 0 labs
Summary in your language
தமிழ் சுருக்கம் (Tamil summary)
IP address என்றால் என்ன?
IP address என்பது ஒரு network-ல் உள்ள device-ன் முகவரி. கடிதம் சரியான வீட்டுக்குச் சேர முகவரி தேவைப்படுவது போல, data சரியான device-க்குச் சேர IP address தேவை.
IPv4 எப்படி இருக்கும்?
192.168.1.14 — புள்ளிகளால் பிரிக்கப்பட்ட நான்கு எண்கள். ஒவ்வொரு எண்ணும் 0 முதல் 255 வரை.
Public vs Private:
- Public IP — முழு இணையத்திலும் தனித்துவமானது. உங்கள் router-க்கு ஒன்று இருக்கும்.
- Private IP — உங்கள் வீடு அல்லது அலுவலக network-க்குள் மட்டும் செல்லுபடியாகும்:
10.x.x.x,172.16.x.x–172.31.x.x,192.168.x.x 127.0.0.1(localhost) — "இதே கணினி" என்று பொருள்.
வீட்டில் உள்ள பல devices ஒரே public IP-ஐ பகிர்ந்துகொள்ள router NAT பயன்படுத்துகிறது.
பாதுகாப்பில் ஏன் முக்கியம்?
- ஒவ்வொரு தாக்குதலும், ஒவ்வொரு விசாரணையும் இரண்டு IP address-களுக்கு இடையே தான் நடக்கிறது.
- ஒரு error page-ல்
10.0.4.22போன்ற private IP தெரிந்தால், அது நிறுவனத்தின் உள் network அமைப்பை வெளிப்படுத்துகிறது. X-Forwarded-For: 127.0.0.1header-ஐ கண்மூடித்தனமாக நம்பும் application-களை ஏமாற்ற முடியும்.
கவனிக்க: IP address ஒரு நபரை அடையாளம் காட்டாது. VPN, proxy, NAT காரணமாக log-ல் தெரியும் IP பெரும்பாலும் உண்மையான attacker-னுடையது அல்ல.
हिंदी सारांश (Hindi summary)
IP address क्या है?
IP address किसी network पर किसी device का पता है। जैसे चिट्ठी सही घर तक पहुँचाने के लिए पता चाहिए, वैसे ही data को सही device तक पहुँचाने के लिए IP address चाहिए।
IPv4 कैसा दिखता है?
192.168.1.14 — बिंदुओं से अलग किए गए चार नंबर। हर नंबर 0 से 255 तक होता है।
Public vs Private:
- Public IP — पूरे इंटरनेट पर अनोखा। आपके router के पास एक होता है।
- Private IP — सिर्फ़ आपके घर या दफ़्तर के network के अंदर मान्य:
10.x.x.x,172.16.x.x–172.31.x.x,192.168.x.x 127.0.0.1(localhost) — मतलब "यही कंप्यूटर"।
घर के कई devices एक ही public IP साझा कर सकें, इसके लिए router NAT का इस्तेमाल करता है।
सुरक्षा में क्यों ज़रूरी है?
- हर हमला और हर जाँच दो IP addresses के बीच ही होती है।
- अगर किसी error page पर
10.0.4.22जैसा private IP दिखे, तो वह कंपनी के अंदरूनी network की जानकारी लीक करता है। - जो applications
X-Forwarded-For: 127.0.0.1header पर आँख बंद करके भरोसा करती हैं, उन्हें धोखा दिया जा सकता है।
ध्यान दें: IP address किसी इंसान की पहचान नहीं है। VPN, proxy और NAT की वजह से log में दिखने वाला IP अक्सर असली attacker का नहीं होता।
Want this summary in Malayalam, Telugu, Kannada or another language? Tell us — the most requested languages get added next.
What's next
You now know where data goes. Next: ports — how a single machine handles dozens of different conversations at once, and why an open port is an open door.
→ Lesson 2: Ports, and why 80 and 443 matter