An IP address (Internet Protocol address) is a unique numerical label assigned to every device connected to a computer network that uses the Internet Protocol for communication.
Think of it like a street address for your device on the internet.
This address serves two main functions:
There are two versions of the Internet Protocol in use today: IPv4 and IPv6. IPv6 was created because the world was running out of IPv4 addresses.
Here is a breakdown of the key differences:
| Feature | IPv4 (Internet Protocol version 4) | IPv6 (Internet Protocol version 6) |
| :--- | :--- | :--- |
| Address Size | 32-bit numerical address. | 128-bit alphanumeric address. |
| Address Format | Written in dotted-decimal notation. Four blocks of numbers from 0-255, separated by periods.
Example: 192.168.1.1 | Written in hexadecimal notation. Eight blocks of four characters, separated by colons.
Example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334 |
| Number of Addresses | About 4.3 billion (2³²) unique addresses. | About 340 undecillion (2¹²⁸) unique addresses. This is an almost unimaginably large number—more than enough for every grain of sand on Earth to have its own IP address. |
| The Problem it Solves | It was the first widely adopted version and built the foundation of the modern internet. | It solves the problem of IPv4 address exhaustion. With the explosion of internet-connected devices (phones, watches, smart homes, etc.), 4.3 billion addresses were not enough. |
| Configuration | Devices typically get an address from a DHCP server (Dynamic Host Configuration Protocol) on the network, or it's configured manually. | Supports autoconfiguration (SLAAC), allowing devices to automatically create their own unique address without needing a DHCP server. This makes network setup much simpler. |
| Security | Security was not originally built into the protocol. IPsec (Internet Protocol Security) is an optional add-on. | IPsec is built-in and mandated as part of the protocol, providing a much stronger foundation for end-to-end security (though it still must be implemented). |
| Efficiency | The packet header is more complex. Routers must calculate a checksum for every packet, which adds minor processing overhead. | The packet header is simplified and more efficient. No checksum calculation at the IP layer, which can speed up packet processing in routers. |
If IPv6 is so much better, why hasn't IPv4 disappeared? The transition is a massive, slow-moving process.