Guide

IPv4 vs IPv6: What's the Difference?

By Hannan · · Updated · 5 min read

The short version

IPv4 looks like this: 203.0.113.42. IPv6 looks like this: 2001:db8::1. Both do the same job: they give each connection an address so data can find its way back. The internet is slowly moving from the first to the second because the world ran out of the first.

For most people the switch is invisible. Your devices, your router and the sites you use sort it out between them. It’s still worth knowing the difference, because it explains CGNAT, some VPN leaks, and why a test might show you an address you’ve never seen before.

Side by side

IPv4IPv6
Address length32 bits128 bits
Written asFour decimal numbers: 203.0.113.42Eight groups of hexadecimal: 2001:db8::1
Total addressesAbout 4.3 billion (2³²)About 3.4 × 10³⁸ (2¹²⁸)
Sharing addressesNAT at home is standard, and many providers add CGNATNot needed: each device can have its own public address
How devices get an addressFrom the router, using DHCP, or set by handUsually configure themselves from the router’s announcements, or use DHCPv6
SpecificationRFC 791 (1981)RFC 8200 (current standard)

How to read an IPv6 address

An IPv6 address is eight groups of four hexadecimal digits, separated by colons. Two shortcuts keep it readable: leading zeros in a group can be dropped, and one run of all-zero groups can be replaced with ::. So 2001:0db8:0000:0000:0000:0000:0000:0001 is written 2001:db8::1.

On a typical home network, the first half of the address (the first four groups) identifies your network, and your provider assigns it. The second half identifies the device on that network. That split matters for privacy, as you’ll see below.

Why IPv4 ran out

A 32-bit address allows about 4.3 billion combinations, and some ranges are reserved for private networks, testing and other special uses. That seemed like plenty when IPv4 was designed. It wasn’t enough for a world of smartphones, laptops, TVs and billions of people online.

The central pool ran dry first. On 3 February 2011, the Number Resource Organization announced that IANA had handed out its last free blocks of IPv4 addresses to the five regional registries. The registries then ran through their own stock over the following years. The RIPE NCC, which serves Europe, the Middle East and parts of Central Asia, announced it had run out on 25 November 2019.

Providers have kept IPv4 going with workarounds. The biggest is NAT: many devices share one public address, and with carrier-grade NAT, many customers share one too. Addresses are also bought and sold between organisations. These workarounds function, but they make some things harder, including hosting services at home and some peer-to-peer connections.

How IPv4 and IPv6 work together

IPv6 isn’t a simple upgrade of IPv4. They’re separate protocols, and a device that only speaks IPv6 can’t talk directly to a server that only speaks IPv4. In practice, three things keep everything working:

The result is that the same page might reach you over IPv4 at home and over IPv6 on your phone, and you’d never notice.

How much of the internet uses IPv6?

Google publishes the share of its users who reach it over IPv6. In Google’s IPv6 statistics, that share was between about 46% and 51% on each day of the week to 27 September 2026, higher at weekends than on weekdays. The same page has a map showing that adoption varies widely from country to country.

IPv6 and privacy

Early IPv6 had a real privacy problem. Devices often built the second half of their address from their hardware (MAC) address, so the same device carried the same identifier on every network it joined.

Modern systems avoid that. They use temporary addresses for outgoing connections, random identifiers that change regularly (RFC 8981), and major operating systems turn them on by default.

Two caveats remain:

Which one are you using?

Try it live:

  1. Open our IPv6 test.
  2. Read the result. “Yes. You reached us over IPv6” means your connection used IPv6 for this page. “You reached us over IPv4” means it used IPv4.
  3. Check the address shown under the result. An IPv6 address has colons in it, and an IPv4 address has dots.
  4. If you’re on a phone, switch between Wi-Fi and mobile data and run it again. Many mobile networks use IPv6 even when home broadband doesn’t.

An IPv4 result only describes this connection. It often means IPv6 isn’t available on your network, but it doesn’t prove it. Our homepage shows the same protocol indicator next to your IP address.

Should you care?

For everyday browsing, not much. Sites work over both, and your devices pick for you. It matters more if you:

Whether you get IPv6 is your provider’s decision. Nearly all modern phones, computers and routers support it. Some routers have an IPv6 option in their internet (WAN) settings that you may need to turn on.

Frequently asked questions

Is IPv6 faster than IPv4?

Not by design. Speed depends on the route your traffic takes. IPv6 can sometimes avoid a provider’s CGNAT equipment, but whether that makes a difference varies by network.

Is IPv6 more secure than IPv4?

Not in itself. Security comes from encryption such as HTTPS, firewalls and up-to-date software, which apply to both. Your router’s firewall should block unrequested incoming connections over IPv6 just as NAT effectively does for IPv4.

Why do I have both an IPv4 and an IPv6 address?

Your network is dual stack. Your device keeps both and uses whichever works best for each connection. That’s why the address a site sees can change between visits.

Should I turn off IPv6?

Usually not. Most of the internet expects it to be available. If you disabled it to stop a VPN leak, a VPN that tunnels or blocks IPv6 is a better fix.

How do I get IPv6 if I don’t have it?

Ask your provider whether it supports IPv6 on your plan, and check your router’s internet (WAN) settings for an IPv6 option. If your provider doesn’t offer it, there’s nothing to switch on at your end.