IPv4 vs IPv6: what is the difference?

Why there are two kinds of IP addresses, how they differ in practice, and whether you need to do anything about IPv6.

IPv4 and IPv6 are two versions of the same thing: the address format the internet uses to deliver data. You probably use both every day without noticing – your phone may load one website over IPv6 and the next one over IPv4.

IPv4IPv6
Example203.0.113.52001:db8:85a3::8a2e:370:7334
Length32 bits128 bits
Number of addressesabout 4.3 billionabout 340 undecillion (3.4 × 1038)
Written as4 numbers 0–255, dots8 groups of hex digits, colons
Typical home setupone public address shared by all devices (NAT)each device has its own public address
Introduced19811998

Why IPv6 exists

4.3 billion addresses looked like plenty in 1981. Today there are more phones than that. APNIC, the Asia-Pacific registry, ran out of its normal pool of free IPv4 addresses in 2011, and RIPE NCC, the European one, in November 2019. Providers therefore share addresses: your router hides all your devices behind one IPv4 address, and mobile operators put hundreds of customers behind one more (CGNAT). IPv6 removes the shortage – there are enough addresses for every grain of sand to have billions.

How to read an IPv6 address

Leading zeros in a group can be dropped, and one run of zero groups can be replaced by “::”. So 2001:0db8:0000:0000:0000:0000:0000:0001 and 2001:db8::1 are the same address. The first half usually identifies the network, the second half the device.

Do I have IPv6?

Look at the IPv6 line on the MonIP home page or run the IPv6 test, which also shows which version your browser prefers. “Not available” is not an error – your provider or router simply does not offer it yet, and everything keeps working over IPv4.

Does it matter for privacy?

Older systems built the second half of an IPv6 address from the network card's MAC address, which made a device recognisable everywhere. Windows, macOS, iOS and Android now use temporary addresses that change regularly. The bigger risk is a VPN that tunnels only IPv4: websites then still see your real IPv6 address. The VPN check catches that.

Sources

  1. RFC 791 – Internet Protocol (IPv4)
  2. RFC 8200 – Internet Protocol, Version 6 (IPv6) Specification
  3. RFC 5952 – A Recommendation for IPv6 Address Text Representation
  4. RFC 8981 – Temporary Address Extensions for Stateless Address Autoconfiguration in IPv6
  5. RIPE NCC – IPv4 exhaustion
How to change your IP addressFive ways to get a new IP address – router restart, another network, VPN, Tor or your provider – with how long each takes and what it costs. Does a VPN hide your IP address?What a VPN hides and what it does not, a five-minute test to see whether yours really works, and how to fix the usual leaks. How to find your router's IP addressFind your router's address (often 192.168.0.1 or 192.168.1.1) on Windows, Mac, Android and iPhone, with the defaults of common router brands. What can someone find out from your IP address?What your IP address reveals – provider, rough location, connection type – what it does not, and the real risks if someone knows it. Static vs dynamic IP addressThe difference between a static and a dynamic IP address, how to tell which one you have, and when paying for a static IP makes sense. How to find your printer's IP addressFind the IP address of a network printer on its display, a printed configuration page, Windows, Mac or the router – and stop it from changing. What is CGNAT – and how to tell if you are behind itCarrier-grade NAT lets many customers share one public IP address. How to recognise it in two minutes, what it breaks and how to get around it. Port forwarding not working? A checklistEight reasons why a forwarded port still shows as closed – CGNAT, double NAT, firewalls, a wrong local IP – checked in the order that finds the cause fastest. Why is my IP address blacklisted – and how to get it removedWhat IP blacklists (DNSBL) are, why an ordinary home address ends up on them, which listings you can ignore and how to request removal. How to find out who owns an IP addressFind the provider, organisation and abuse contact behind any IP address with WHOIS, ASN and reverse DNS – and where the trail stops. Best public DNS servers – and how to change DNSCloudflare, Google, Quad9 and AdGuard DNS compared – addresses, filtering, privacy – with step-by-step instructions for router, Windows, Mac, Android and iPhone. MonIP vs WhatIsMyIPAddress.com – comparisonHow MonIP and WhatIsMyIPAddress.com compare: languages, tools, data sources, API – and which one fits which job. MonIP vs IPLocation.net – comparisonHow MonIP and IPLocation.net compare: languages, location data from one or several providers, network tools and API. MonIP vs WhatIsMyIP.com – comparisonHow MonIP and WhatIsMyIP.com compare: languages, tools, e-mail diagnostics, API pricing and accounts.