🌐

IPv4 vs IPv6

How the two internet addressing schemes differ.

FeatureIPv4IPv6
Address size32-bit128-bit
Total addresses~4.3 billion (2³²)~340 undecillion (2¹²⁸)
NotationDotted decimal
192.168.1.1
Hex, colon-separated
2001:db8::8a2e:370:7334
Groups4 octets (0–255)8 groups of 4 hex digits
ConfigurationManual or DHCPAutoconfiguration (SLAAC) or DHCPv6
NATCommon (address scarcity)Rarely needed (huge space)
HeaderVariable, more fieldsSimplified, fixed 40 bytes
SecurityIPsec optionalIPsec designed in
BroadcastYesNo — uses multicast/anycast

Why IPv6 exists

The world ran out of unique IPv4 addresses — 4.3 billion isn't enough for billions of phones, computers and connected devices. IPv6's 128-bit space is effectively unlimited, removing the need for workarounds like NAT and simplifying routing.

Do I need to do anything?

Usually no. Modern operating systems and most ISPs support both ("dual stack") and pick the best one automatically. IPv4 will coexist with IPv6 for a long time.

Quick examples