IPv4 and IPv6: what is the difference?

There are two versions of the Internet Protocol in use at the same time. They differ in the length of the addresses and in how they came about.

IPv4: the original

IPv4 addresses consist of four numbers between 0 and 255, such as 203.0.113.25. That is 32 bits, which gives a little over 4.3 billion possible addresses. That sounded like plenty when the protocol was designed. With billions of devices, it turned out not to be.

IPv6: the successor

IPv6 addresses are 128 bits long and are written in hexadecimal with colons, such as 2001:db8:85a3::8a2e:370:7334. Two colons in a row stand for a run of zeros that has been left out. The number of possible addresses is so large that running out is not a realistic worry.

Why both exist

The central supply of new IPv4 addresses ran out in 2011. Providers have since stretched the existing addresses by letting many customers share one address. IPv6 solves the shortage, but IPv4 and IPv6 do not talk to each other directly, so the internet has been moving over in stages for years. Many networks therefore support both, which is called dual stack.

Which one do you use?

If your provider and your device support both, your browser usually prefers IPv6 and uses IPv4 for sites that have no IPv6 address. That is why you can have an IPv4 and an IPv6 address at the same time. The home page shows the address your browser used and, below it, both addresses when it can determine them.

For most people, nothing needs to be done. Both work. If a site does not load while others do, an IPv6 problem on your side is one of the things to rule out.

How this site shows both

Because a connection can have both versions, the home page asks for your address over IPv4 and over IPv6 separately, using two helper addresses of this site, and shows each one it receives. If only one row appears, your connection, your router or a VPN does not use the other version. That is not a fault in itself.

Sources and limits

How far the move to IPv6 has come differs strongly between countries and providers, so this guide gives no percentages. The address formats are defined in RFC 791 and RFC 8200, with the notation in RFC 4291. The depletion of the central IPv4 pool is described in the ARIN announcement of 3 February 2011. How a browser chooses between the two versions is described in RFC 8305. The full list is on the sources page.

Read next

Look up an IP address · Back to your own IP address