Your IPv4 address:
Operating system:

IPv4 vs IPv6: addresses, dual stack and compatibility

Your computer lists one short address made of dots and several long ones made of colons, and a site that opens on your phone fails on your laptop. Both versions of the Internet Protocol run side by side on today’s Internet. IPv4 addresses are 32 bits long and IPv6 addresses are 128 bits long. The bigger address space does not make a connection faster or safer in itself; speed and exposure depend on the route, the network and the configuration.

How to read each kind of address

IPv4 is written as four decimal numbers, such as 192.0.2.10. IPv6 is written as groups of hexadecimal digits separated by colons. One run of all-zero groups may be shortened to ::, but only once per address, as in 2001:db8::10. Both examples come from ranges reserved for documentation, so they are not live public servers.

A slash followed by a number gives the prefix length, the count of leading bits that identify the network. 192.0.2.0/24 and 2001:db8::/32 therefore name blocks of addresses and not single hosts. To explore IPv4 subnet calculations, try the 2ip IP calculator.

Why one device has several addresses

A single computer can hold a private IPv4 address on its local network, appear to the outside world under a public IPv4 address through NAT, and also have an IPv6 link-local address plus one or more global IPv6 addresses. All of this is normal.

Running both protocols at once is called dual stack. For each connection the application picks one address family from those available. In DNS, an A record names an IPv4 destination and an AAAA record names an IPv6 one. A website can publish both. An AAAA record alone, however, does not prove that the server, the route and the firewall actually allow IPv6 connections. The packet format and the Hop Limit field are defined in the IPv6 specification.

What NAT has to do with it

IPv4 space is limited, so providers commonly use NAT, which lets many devices share one public address. Some add a second layer in their own network, known as carrier-grade NAT. IPv6 has far more addresses, so each device can hold a global address without this forced sharing. You still need firewall rules; a global address is not a protected one.

Can IPv4 and IPv6 talk to each other?

Not directly. An IPv4-only application does not start understanding IPv6 because a DNS record changed. Communication across the two families needs a suitable translation mechanism in between, or support for both versions at the endpoints.

When a site works over one version only

If a website fails to load, query its A and AAAA records and compare access over IPv4 and over IPv6. When only one version works, inspect that version’s address, route, DNS results and firewall rules, on the router and on the server. A difference in speed between the two usually reflects a different path or interconnection between networks. The number of address bits has nothing to do with it.

The 2ip IP information tool reports the address seen for that particular request. Another application, or even another request, may go out from a different address. Before you report a fault, record the time and the address family involved.