IP fundamentals

IPv4-mapped IPv6 addresses explained

An IPv4-mapped IPv6 address represents an IPv4 address in a 128-bit representation used by some APIs.

Updated

Recognize the prefix

::ffff:192.0.2.10 is a mapped address whose low 32 bits encode 192.0.2.10. This representation is not proof of a native IPv6 internet connection.

Normalize for comparison

A server API may report a mapped address while another tool shows dotted IPv4. If the application normalizes mapped values to IPv4, the values can match even though their text differs.

Keep semantics explicit

Not every IPv6 address embedding IPv4 is a mapped address. Translation mechanisms such as NAT64 use distinct prefixes and behavior. Validation and access rules must agree about how mapped values are handled.

Interpret an API response

An application using a dual-stack socket may receive ::ffff:192.0.2.10 for an IPv4 peer. A log parser that treats this as native IPv6 can misclassify address families and access rules. Normalize only after recognizing the mapped prefix, retaining the original representation if the application needs it.

Step-by-step example

Read ::ffff:192.0.2.10 without confusing representation with connectivity.

  1. 01

    Locate the mapped marker

    The IPv4-mapped IPv6 format has 80 leading zero bits, then 16 one bits and the 32-bit IPv4 address.

    Leading bits
    80 zero
    Marker
    ffff
    IPv4 part
    192.0.2.10
    Illustration · example, not a live result
  2. 02

    Convert the embedded IPv4

    192.0.2.10 in hexadecimal is c000:020a. The full IPv6 spelling is 0000:0000:0000:0000:0000:ffff:c000:020a. To obtain the hexadecimal groups, convert each decimal octet independently: 192 = c0, 0 = 00, 2 = 02 and 10 = 0a. Pair those bytes to form the final two groups.

    192.0
    c000
    2.10
    020a
    Mapped form
    ::ffff:c000:20a
    Illustration · example, not a live result
  3. 03

    Interpret the result

    Use IPv6 Analyzer to read the mapped classification and embedded IPv4. Operating systems may expose mapped addresses through IPv6-compatible socket APIs; that does not prove packets traveled over IPv6.

    API representation
    IPv4-mapped
    Transport evidence
    Check actual connection
    Illustration · example, not a live result

Check your understanding

Do not infer a second public address from a mapped representation.

Try this tool →

Try this

Enter ::ffff:192.0.2.10 in the IPv6 analyzer and compare its embedded IPv4 result.

IPv6 address analyzer →

Technical references