What Is an IP Address? IPv4 vs IPv6, Subnets, and Routing Explained
An IP (Internet Protocol) address is a unique numerical label assigned to every device connected to a computer network that uses the Internet Protocol for communication, serving as both an identity identifier and location address.
💡 Plain-English Analogy
An IP address is the digital equivalent of your physical home street address. If someone wants to mail a package (a packet of website data) to your laptop, the global internet postal system (routers) reads your IP address to route the data directly to your doorstep.
⚙️ Architecture & Under the Hood
IP operates at Layer 3 (Network Layer) of the OSI stack. IPv4 uses 32-bit integers yielding ~4.29 billion addresses, formatted as four 8-bit octets (e.g. 192.168.1.1). Due to address exhaustion, IPv6 expands address space to 128 bits (~3.4×10^38 addresses), formatted in 8 hexadecimal groups. CIDR notation (e.g. /24) defines network versus host subnet bit boundaries.
IPv4 vs IPv6 Comparison
The transition from 32-bit IPv4 to 128-bit IPv6 solves address exhaustion and improves routing efficiency.
IPv4: 192.0.2.146
├── 32 bits (4 bytes)
└── Total capacity: ~4.3 billion addresses (Exhausted)
IPv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
├── 128 bits (16 bytes)
└── Total capacity: 340 undecillion addresses (Virtually infinite)
Frequently Asked Questions
What is a static vs dynamic IP address?
A static IP address is permanently assigned to a server and never changes, making it ideal for hosting websites and APIs. A dynamic IP address is temporarily assigned to consumer devices by an ISP router via DHCP and changes periodically.