IPv4 vs IPv6: what's different and which one you're using

How IPv4 and IPv6 differ in addressing, NAT and privacy, how they coexist, when your browser picks IPv6, how to check for it, and why proxies can leak it.

Popo
On this page

What is an IP address? covered how long the two kinds of address are and how they're written: IPv4 as four decimal numbers, IPv6 as eight groups of hex. The longer address is only the surface. What actually changes day to day is how addresses are handed out, how devices get them, and how the two networks run side by side.

More than longer addresses

IPv4IPv6
Enough addresses?About 4.3 billion, long since used upEnough to give every household a whole block
What your home getsOne public address, or a share of oneA prefix, typically a /56 to a /64
NATDevices at home share one public addressUsually not needed; every device has a public address
How devices get oneThe router hands them out over DHCPDevices build their own from the router's prefix
Addresses per deviceOneSeveral: link-local, stable and temporary

The biggest change is that NAT is no longer needed. With IPv4 there aren't enough addresses, so a household gets one public address, or even shares one with other customers. With IPv6 there are so many that ISPs can give each household a whole block. A single /64 holds 2 to the power of 64 addresses, so every device at home can have its own public address.

China Telecom · 240e::/18Its IPv6 block, allocated by APNIC
At one /56 per home: about 275 billion homes
One home · a /56Some ISPs give a /60
Splits into 256 /64s
One home network · a /64Announced by the router
Room for 2⁶⁴ addresses, about 18 billion billion
Each deviceMakes up its own last 64 bits
China Telecom as an example (APNIC's registration record, 25 November 2026). A /56 or a /60 per home are both common; this uses /56.

For comparison, all the IPv4 addresses China Telecom announces come to about 110 million (see What is an ASN?), roughly one in 2,500 of the /56s this one IPv6 block can provide.

Why a device has several IPv6 addresses

Look up a computer's IPv6 addresses and you'll often find several, each with a job:

  • Link-local address: starts with fe80:, works only on the local network, and every network interface has one.
  • Stable address: the router's prefix plus a suffix the device generates. It usually stays the same and is used for incoming connections.
  • Temporary address: in the same prefix, but with a random suffix that changes regularly. This is the one used when you visit websites.

For what each of these looks like in ipconfig and ifconfig, see the real output at the end of What is an IP address?

Early IPv6 addresses built the suffix from the network card's hardware address, so it was the same on every network, like a permanent tag on the device. Mainstream operating systems now generate random suffixes and use temporary addresses for outgoing connections by default.

The prefix doesn't change with them, though. It's the block your ISP assigned to your home, and every device and every temporary address sits inside it, so websites can still tell those connections come from the same household. Some ISPs hand out a new prefix when you reconnect; others keep it the same for a long time.

Without NAT, are devices at home exposed?

NAT exists to save addresses. It happens to block connections started from outside, but it was never a real firewall. With IPv6 the router's firewall does that job: most home routers and ISP modems only allow connections you start and block unsolicited ones from outside by default. To reach a NAS or camera at home from outside, you open it up on the router.

That's also an advantage of IPv6. Behind carrier-grade NAT there's no way to connect back to your home, but with a public IPv6 address you just allow it on the router.

How the two coexist

IPv4 and IPv6 can't talk to each other directly, so networks use a few approaches during the transition:

  • Dual stack: devices have both IPv4 and IPv6 addresses and use whichever the site supports. This is the most common setup on home broadband.
  • IPv6-only with translation: the network only runs IPv6, and the carrier's gateway translates between the two when you visit an IPv4-only site. Many mobile networks already work this way, which is why Apple has required since 2016 that App Store apps work on IPv6-only networks.
  • IPv4 carried over IPv6: the ISP only builds an IPv6 network and tunnels customers' IPv4 traffic inside it to a gateway. The IPv4 address in this setup is usually shared.

Dual stack

Your deviceHas both IPv4 and IPv6
IPv6 sites over IPv6
IPv4-only sites over IPv4

IPv6 only, with translation

PhoneIPv6 address only
IPv6
Carrier gatewayTranslates IPv6 to IPv4
IPv4
IPv4-only site

IPv4 carried inside IPv6

Home routerWraps IPv4 in IPv6
IPv6
ISP gatewayUnwraps it; the IPv4 address is shared
IPv4
Website
In the last two setups, your device or router may not have a public IPv4 address of its own at all; the IPv4 address websites see belongs to the carrier's gateway and is shared with others.

When your browser uses IPv6

On a dual-stack network, if a site has both IPv4 and IPv6 addresses, the browser tries IPv6 first. If that hasn't connected within a fraction of a second (usually 0.25 to 0.3 seconds), it tries IPv4 at the same time and uses whichever connects first. This is called Happy Eyeballs, and it keeps users from waiting when IPv6 is broken.

IPv6 works

IPv6
IPv4

Connected over IPv6 in 40 ms; IPv4 is never tried.

IPv6 is broken

IPv6
IPv4

No IPv6 connection after 250 ms, so IPv4 starts and wins.

The wait is drawn at the 250 ms RFC 8305 recommends; how long each connection takes is illustrative.

A few things follow from that:

  • From the same computer, sites that support IPv6 see your IPv6 address, and IPv4-only sites see your IPv4 address.
  • If IPv6 isn't working, the browser quietly falls back to IPv4. You won't notice, except that things are sometimes a little slower.
  • Websites usually have less geolocation and risk data for IPv6 addresses, so your IPv4 and IPv6 addresses can be placed and judged differently; see How IP geolocation works.

How widespread IPv6 is

On 28 March 2026, the share of Google users connecting over IPv6 passed half (50.10%) for the first time, with big differences between countries:

Share of users reaching Google over IPv6

  1. France73%
  2. India72%
  3. Saudi Arabia65%
  4. World50.1%
  5. Italy17%
  6. Spain10%
  7. Egypt4%
Data from Internet Society Pulse, “18 Years Later, IPv6 Reaches Majority” (April 2026), based on users reaching Google.

Many home broadband and mobile networks support IPv6 today. On mobile it's usually on by default; on home broadband it often depends on whether the modem and router have it turned on.

How to check whether you have IPv6

The quickest way is to open the CKIP home page. If it shows an IPv6 address, you have IPv6 and your browser prefers it. If it shows IPv4, you may have no IPv6, or IPv6 may be broken and your browser fell back to IPv4.

The network exit check asks several sites what address they see and lists them all. If you see both an IPv4 and an IPv6 exit, your network is dual stack.

You can also check on the device. Public IPv6 addresses usually start with 2 or 3. Addresses starting with fe80: are link-local and those starting with fd are private, so neither counts.

Windows: run ipconfig and look for the "IPv6 Address" and "Temporary IPv6 Address" lines. "Link-local IPv6 Address" doesn't count.

Command Prompt
ipconfig

macOS:

Terminal
ifconfig en0 | grep inet6

Linux:

Terminal
ip -6 address

First see whether the site has an IPv6 address. dig looks up its AAAA records (IPv6 addresses); any result means the site supports IPv6:

Terminal
dig AAAA ckip.net +short2606:4700:3032::ac43:c4442606:4700:3032::6815:4a20

Then check that you can actually reach the internet over IPv6. On Windows and Linux use ping -6; on macOS use ping6:

Terminal
ping -6 ckip.netPING ckip.net (2606:4700:3032::ac43:c444) 56 data bytes64 bytes from ckip.net (2606:4700:3032::ac43:c444): icmp_seq=1 ttl=50 time=1.95 ms64 bytes from ckip.net (2606:4700:3032::ac43:c444): icmp_seq=2 ttl=50 time=1.89 ms64 bytes from ckip.net (2606:4700:3032::ac43:c444): icmp_seq=3 ttl=50 time=2.11 ms64 bytes from ckip.net (2606:4700:3032::ac43:c444): icmp_seq=4 ttl=50 time=1.83 ms --- ckip.net ping statistics ---4 packets transmitted, 4 received, 0% packet loss, time 1502msrtt min/avg/max/mdev = 1.830/1.944/2.110/0.103 ms

Both were run on a Globalping probe in Frankfurt (25 November 2026). If your device has no IPv6, ping -6 fails right away with an error such as "Network is unreachable".

If you have no public IPv6 address, look for an IPv6 setting on your modem or router. If the modem is in bridge mode, your own router dials the connection and requests the prefix from your ISP.

Why proxies can leak IPv6

Many proxies and VPNs only handle IPv4. If your network has IPv6, traffic to IPv6-capable sites may go straight out over IPv6 and skip the proxy, so the site sees your real IPv6 address. That address's prefix is the block your ISP assigned to your home, which reveals your ISP and roughly where you are. This is an IPv6 leak.

IPv4: through the proxy

Your device
Proxy (IPv4 only)
The site sees198.51.100.23The proxy’s exit

IPv6: straight out, around the proxy

Your device
The site sees2001:db8:4f2a:1:…Your home’s prefix: reveals your ISP and rough location
Same device, same site: IPv4 requests go through the proxy, IPv6 requests go straight out. Browsers prefer IPv6, so this kind of leak is common.

To check, run the network exit check with your proxy on. If the IPv4 exit is the proxy's address but there's also an IPv6 exit belonging to your own ISP, IPv6 is leaking. The WebRTC leak test also lists any public IPv6 address your browser exposes.

To fix it, turn on IPv6 support in your proxy or VPN so it handles IPv6 too. If it doesn't support IPv6, turn IPv6 off on your device or router while you use it.