IPv4 vs IPv6, What Is the Difference?

IPv4 uses 32-bit addresses, which allows 4,294,967,296 possible values. IPv6 uses 128-bit addresses. Providing complete implementations of both versions is called dual stack.

Technobezz
IPv4 vs IPv6, What Is the Difference?Photo: RAIL P (RAIL.PHOTOGRAPHY) / Wikimedia Commons, CC0

Contents

Don't Miss the Good Stuff

Get tech news that matters delivered to your inbox.

IPv4 and IPv6 are two versions of the Internet Protocol, and they use different address sizes. IPv4 uses 32-bit addresses and IPv6 uses 128-bit addresses, so IPv6 has far more of them. Providing complete implementations of both versions is called dual stack.

IPv4 vs IPv6 at a glance

  • Address length: IPv4 addresses are a fixed four octets, or 32 bits, under RFC 791. RFC 8200 says IPv6 increases the address size from 32 bits to 128 bits.
  • How an address looks: IANA describes IPv4 addresses as commonly written as four octets in dotted decimal notation, such as 192.0.2.53. IPv6 addresses are conventionally written as hexadecimal strings, such as 2001:0db8:582:ae33::29.
  • How many addresses: 32 bits works out to 4,294,967,296 possible IPv4 values, and that count includes reserved addresses. IANA gives the IPv6 total as 340,282,366,920,938,463,463,374,607,431,768,211,456.
  • Supply: IANA's inventory of unallocated IPv4 /8 blocks is exhausted, and ARIN's free pool of IPv4 space was depleted in 2015.

IANA shows both formats on its number resources page. See What Is an IP Address?

Why IPv4 addresses ran out

The IPv4 pool emptied in stages. ARIN says in its archived depletion FAQ that IANA issued its remaining five /8 address blocks on February 3, 2011, split equally among the five regional registries. A May 2012 IANA notice then set out a policy for smaller allocations after that inventory was exhausted.

On March 1, 2019, IANA allocated two /24 blocks to each regional registry. IANA said this effectively exhausts the address space it has to allocate under that policy.

ARIN's own free pool of IPv4 space was depleted on September 24, 2015. ARIN says it is still processing and approving IPv4 requests. Its request page points applicants to a waiting list and names transfers as another way to get addresses.

How NAT stretches IPv4

Network Address Translation, or NAT, can let a network use fewer external IPv4 addresses. RFC 3022 defines basic NAT as mapping IP addresses from one group to another. It describes a second form, Network Address Port Translation or NAPT, that lets multiple devices on a local network reach remote networks at the same time through the single IP address assigned to their router.

That reduces the number of external addresses a network needs. Sharing can also happen across customers. An ARIN registry record describes DS-Lite as a way of sharing a single IPv4 address among multiple broadband customers by combining IP-in-IP and NAT.

Device support

RFC 4213 defines dual stack as providing complete implementations of both versions of the Internet Protocol. The major platforms document IPv6 support in their own pages.

  • Windows: Microsoft documents IPv6 settings for Windows 10 and Windows 11. Manual setup means choosing Manual, turning on IPv6, then entering an address, subnet prefix length, gateway and DNS servers.
  • Mac: Apple says IPv6 is configured automatically by default. Manual setup is under Network settings, Details, then TCP/IP.
  • iPhone and iPad: Apple states that all Apple operating systems support IPv6.
  • Android: the Android 17 Compatibility Definition requires devices to include an IPv6 networking stack and enable IPv6 by default. It requires dual-stack and IPv6-only operation on Wi-Fi. Cellular must support IPv6-only operation and may support dual stack.

Which one fits

If you use a Mac, the automatic setting is the starting point, because Apple says IPv6 is configured automatically by default, with manual setup under Network settings, Details, then TCP/IP. If you use a device built to the Android 17 Compatibility Definition, that document requires IPv6 to be enabled by default.

If you run Windows 10 or 11 and a network needs fixed values, Microsoft's manual IPv6 fields are the place to enter them. Those fields include DNS servers. See How to Disable IPv6 in Windows, How to Renew Your Local IP Address in Windows 11 and What Is DNS?

Share

More in Technology