IPv4 vs IPv6: What's the Difference and Why It Matters
The IPv4 Exhaustion Problem
When IPv4 was designed in the 1980s, its creators allocated a 32-bit address space — enough for about 4.3 billion unique addresses. At the time, this seemed more than sufficient. The internet was a research network connecting universities and government facilities, not a global infrastructure serving billions of people and their devices.
By the early 2000s, it was clear that IPv4 addresses would run out. The Internet Assigned Numbers Authority (IANA) — the organisation responsible for global IP address allocation — exhausted its free pool of IPv4 addresses on February 3, 2011. Regional registries (ARIN, RIPE NCC, APNIC, etc.) followed over the next few years, with ARIN (which covers North America) depleting its reserves in September 2015.
This didn't break the internet overnight. Two technologies kept IPv4 alive:
- NAT (Network Address Translation): Allows an entire network — a home, office, or mobile carrier — to share a single public IPv4 address. Your router sits between your devices and the internet, translating private internal addresses to its one public IP.
- Address trading: Organisations with surplus IPv4 blocks sell them on the secondary market. A single /8 block (16 million addresses) can sell for tens of millions of dollars.
But these are workarounds, not solutions. IPv6 is the actual fix — and adoption is accelerating.
IPv4 Address Format
An IPv4 address is a 32-bit number written as four decimal octets separated by dots:
192.168.1.100
203.0.113.47
8.8.8.8 Each octet ranges from 0 to 255, giving 256 possible values per position and 2564 = 4,294,967,296 total combinations.
CIDR Notation
IP addresses are often written with a CIDR suffix that indicates the size of the network block. For example, 192.168.1.0/24 means the first 24 bits are the network portion, leaving 8 bits for hosts — giving you 254 usable addresses (192.168.1.1 through 192.168.1.254). Common CIDR blocks:
/32— single host (one IP address)/24— 254 usable hosts (a typical home or small office network)/16— 65,534 usable hosts/8— over 16 million addresses
You can explore subnets in detail using the subnet calculator.
IPv6 Address Format
An IPv6 address is a 128-bit number written as eight groups of four hexadecimal digits, separated by colons:
2001:0db8:85a3:0000:0000:8a2e:0370:7334 Shorthand Rules
IPv6 has two abbreviation rules to make addresses more readable:
- Leading zeros in each group can be omitted:
0db8becomesdb8,0000becomes0. - One consecutive run of all-zero groups can be replaced with
:::2001:db8:85a3:0:0:8a2e:370:7334becomes2001:db8:85a3::8a2e:370:7334.
The :: can only appear once in an address. A loopback address that would be written as 0000:0000:0000:0000:0000:0000:0000:0001 is simply ::1.
You can convert and expand IPv6 addresses using the IPv6 converter tool.
Key Technical Differences
Address Space
The difference is staggering: IPv4 offers ~4.3 billion addresses; IPv6 offers ~340 undecillion (3.4 × 1038). To put this in perspective: if every IPv4 address were a grain of sand, IPv6 would fill the observable universe many times over. Every person on Earth could have billions of IPv6 addresses.
Header Format
IPv4 packet headers are variable-length (20–60 bytes) and include a checksum field that routers must recalculate at every hop — adding processing overhead. IPv6 headers are fixed at 40 bytes and remove the checksum (handled by upper-layer protocols like TCP and UDP), making router processing faster and more efficient. IPv6 also introduces extension headers for optional features, keeping the base header clean.
NAT vs End-to-End Connectivity
IPv4 relies heavily on NAT, which breaks the internet's original end-to-end model — two devices can't communicate directly unless one initiates the connection. This creates complications for peer-to-peer applications, VoIP, gaming, and IoT. IPv6 is designed to restore true end-to-end connectivity: every device gets a globally routable address, eliminating the need for NAT.
Auto-Configuration (SLAAC)
IPv6 supports SLAAC (Stateless Address Autoconfiguration), allowing devices to generate their own IP addresses without a DHCP server by combining the network prefix (advertised by the router) with their own interface identifier. This simplifies network administration, especially for large deployments like IoT networks.
Multicast Instead of Broadcast
IPv4 uses broadcast to send packets to all devices on a network — which is inefficient and creates unnecessary traffic. IPv6 replaces broadcast entirely with multicast (and anycast), sending packets only to devices that have subscribed to receive them. This reduces network noise significantly.
Built-in Security
IPv6 was designed with IPsec (Internet Protocol Security) support built in as a mandatory part of the protocol, though in practice it's optional. IPv4 added IPsec support later as an optional extension.
Adoption Statistics
Global IPv6 adoption sits at approximately 35–40% of internet traffic as of 2024, according to Google's IPv6 statistics. Adoption varies dramatically by country and ISP:
- High adoption: India (~70%), USA (~50%), Germany (~65%), France (~60%)
- Moderate adoption: UK (~40%), Brazil (~30%), Japan (~40%)
- Low adoption: Many developing markets where ISP infrastructure updates lag
Mobile networks are often ahead of fixed-line ISPs because mobile carriers found it cheaper to deploy IPv6 natively than to manage NAT at scale. T-Mobile in the US, for example, carries the majority of its traffic over IPv6.
Dual-Stack Operation
During the transition period (which will last years or decades), most networks run dual-stack — supporting both IPv4 and IPv6 simultaneously. When you connect to a website:
- Your device looks up the domain via DNS, receiving both an
Arecord (IPv4) and anAAAArecord (IPv6) if both exist. - Your operating system uses the Happy Eyeballs algorithm (RFC 8305) to try both connections simultaneously, preferring IPv6 when it's available and not significantly slower.
- The faster connection wins and is used for the session.
This means that for most users, the IPv4-to-IPv6 transition is completely invisible — your browser handles it automatically.
When You Need to Care About This
For everyday browsing, streaming, and communication, you don't need to think about IPv4 vs IPv6. Your OS and browser handle it. But the distinction matters in these scenarios:
- Running a server: You should ensure your server has both A and AAAA DNS records and listens on both IPv4 and IPv6 to serve all users.
- VPN configuration: Some VPNs only tunnel IPv4 traffic. If your device uses IPv6, traffic may leak outside the VPN — a phenomenon called an IPv6 leak. Check your VPN provider's IPv6 support.
- Firewall rules: If you maintain firewall rules for IPv4, remember that equivalent IPv6 rules are separate and must be configured independently.
- IoT and embedded devices: Many older IoT devices only support IPv4, which can complicate deployment in IPv6-only environments.
- ISP troubleshooting: If a website is unreachable, testing via IPv4 vs IPv6 can isolate which path has the issue.
Check Your IP Address Now
See whether you're connecting via IPv4 or IPv6 — and your location and ISP.
View My IP Address →