gotinfo.net by VARØ Industries

IPv4 vs IPv6: What the Difference Means for Your Connection

GotInfo guides  |  VARØ Industries

Open the GotInfo home page and you may see two addresses: a short one with dots and a long one with colons. Both belong to you, they reach the internet by different routes, and they say different things about your network.

Two versions of the same idea

IPv4 and IPv6 are two versions of the Internet Protocol, the system that gives every connection an address so traffic can find its way back. IPv4 has been in use since the early 1980s. IPv6 was designed in the 1990s because it was already clear that IPv4 would run out of addresses. The two do not talk to each other directly. A device that wants to reach an IPv6-only server needs IPv6 connectivity, and the same goes for IPv4, which is why most networks now run both side by side. This arrangement is called dual stack.

IPv4IPv6
Address length32 bits128 bits
Total addressesAbout 4.3 billion (232)About 3.4 × 1038 (2128)
Written asFour decimal numbers, 0 to 255, separated by dotsEight groups of four hexadecimal digits, separated by colons
Example203.0.113.72001:db8:4a2c:10::25
Typical home setupOne public address shared by every device through NATA block of addresses, with each device getting its own public address
Loopback (this machine)127.0.0.1::1
Address configurationUsually DHCP from the routerUsually automatic (SLAAC) from router advertisements, sometimes DHCPv6

The example addresses on this page come from ranges reserved for documentation, so they never belong to a real network.

Why IPv4 ran out

Four billion addresses sounded like plenty when IPv4 was designed. Phones, laptops, servers, cameras and smart plugs changed that. The Internet Assigned Numbers Authority (IANA) handed out its last free blocks of IPv4 space to the regional registries in 2011, and the regional registries then ran through their own pools over the following years. Today, new IPv4 space mostly changes hands through transfers between organizations, and addresses have a market price.

The internet kept growing anyway, mainly through network address translation (NAT). Your router holds one public IPv4 address and translates for every device behind it, which use private addresses such as 192.168.1.20. Many mobile carriers and some home providers go a step further with carrier-grade NAT, which shares one public address among many customers. The guide to private addresses, NAT and CGNAT covers how that works and what it breaks.

How to read an IPv6 address

An IPv6 address is 128 bits written as eight groups of four hexadecimal digits. Written out in full, that is long, so there are two rules for shortening it, standardized in RFC 5952:

  1. Drop leading zeros in each group. 0db8 becomes db8, and 0000 becomes 0.
  2. Replace one run of all-zero groups with a double colon. This can only be done once per address, otherwise it would be impossible to tell how many zeros each :: stood for. The longest run is the one that gets shortened.

Worked example. The full address 2001:0db8:0000:0000:0000:ff00:0042:8329 becomes 2001:db8:0:0:0:ff00:42:8329 after rule 1, and 2001:db8::ff00:42:8329 after rule 2. To expand it again, count the groups you can see (five) and fill the :: with enough zero groups to make eight (three).

The address also splits into two halves. On a normal network the first 64 bits are the network prefix, supplied by your provider and router, and the last 64 bits are the interface identifier, chosen by your device. Providers typically delegate a /56 or /48 to a home or business site, which leaves room for 256 or 65,536 separate /64 networks. The subnet calculator handles IPv6 prefixes as well as IPv4 ones.

Why you might see both, or only one

When both protocols work, operating systems and browsers generally prefer IPv6 but race the two connections and use whichever answers first, a technique known as Happy Eyeballs. That is why the same browser can reach one site over IPv6 and another over IPv4 a moment later. The GotInfo home page asks for each address separately, so you see exactly which protocols your connection has.

What each address reveals

Both addresses point to your provider and an approximate region, as described in what your IP address reveals. The differences are in the detail.

An IPv4 address behind NAT is shared by your whole household, or with carrier-grade NAT by many households, so it does not identify a single device. An IPv6 address is usually unique to one device. Early IPv6 systems built the interface identifier from the network card's hardware address, which meant a laptop carried the same identifier from network to network. Modern systems avoid that. They use temporary addresses (privacy extensions, now specified in RFC 8981) that change regularly for outgoing connections, and stable identifiers that are generated randomly per network rather than from hardware. The network prefix still identifies your home connection, so the privacy gain is about devices and time, not about hiding who your provider is.

Geolocation databases are often less precise for IPv6 because the address space is newer and allocations are larger, so the two addresses can map to slightly different cities. The GotInfo home page looks up location for your IPv4 address when you have one; to compare, paste your IPv6 address into its lookup box.

Practical checks

  1. See what you have. Load the GotInfo home page. If the IPv6 card shows an address, IPv6 works end to end.
  2. Check your device. On Windows run ipconfig, on macOS or Linux run ifconfig or ip addr. Addresses starting with fe80: are link-local and only work on your local network; a global address usually starts with a 2 or a 3.
  3. Test a VPN. If your VPN hides your IPv4 address but GotInfo still shows your provider's IPv6 address, the VPN is leaking IPv6 traffic. The VPN leak test guide walks through this.
  4. Firewall rules. If you host anything at home, remember that IPv6 devices are directly addressable. Your router's IPv6 firewall, not NAT, is what stops unsolicited inbound connections, so check that it is enabled.

Do you need to do anything?

For most people, no. If your provider supports IPv6, leaving it enabled is the normal configuration, and it can avoid the bottlenecks of carrier-grade NAT. Turning it off is a common troubleshooting step but rarely a permanent fix, and it tends to hide the real problem. If you run servers, publish both A and AAAA records when both work, and test each protocol separately so a broken IPv6 path does not slow down the visitors whose devices prefer it.

See both of your addresses now: open GotInfo to check whether your connection uses IPv4, IPv6 or both.

Related guides