IPv4 and IPv6 explained
Recognize both address formats, expand a shortened IPv6 address, and interpret the two detection results on your network.
Read the two formats
IPv4 addresses have 32 bits. The familiar written form splits them into four numbers, each from 0 through 255. The documentation address 192.0.2.18 is an example. IPv6 uses 128 bits and usually appears as groups of hexadecimal digits separated by colons. Hexadecimal adds the letters a through f to the digits 0 through 9. The IPv6 specification
An IPv6 address can look surprisingly short. Start with 2001:db8::18. The double colon stands for enough consecutive zero groups to bring the total to eight. In this example the full address is 2001:0db8:0000:0000:0000:0000:0000:0018. The compact spelling also drops leading zeros within individual groups. How IPv6 addresses are written
Why the same browser can show both
A network that supports both protocols is often called dual stack. When a browser visits a site available over both, it can choose a working path. A single request only reveals the family it used. The overview makes a separate request for each family, so the IPv4 request can succeed even if the IPv6 request cannot complete. Check your IPv4 and IPv6 addresses
Imagine checking on home Wi-Fi and seeing two addresses. Later, over a work VPN, you see only IPv4. That second result establishes which check succeeded from the browser during that visit. The VPN’s routing choices, the current network, or access to the detection service could account for the difference. Record the connection you used when you compare results.
Choose the right value to share
If a support form asks for IPv6, copy the entire IPv6 value, including both colons where it uses the short form. IPv4 and IPv6 values on the same device are independent. You usually cannot calculate one from the other.
Check your understanding
How many groups of zeros does the double colon in 2001:db8:7::5 represent?
Show the answer
Four. The visible groups are 2001, db8, 7, and 5. Insert four zero groups between 7 and 5 and you have the full eight-group address.