IPv4-Mapped IPv6 Address ::ffff:192.168.1.1

Expand and analyze the IPv4-mapped IPv6 address ::ffff:192.168.1.1. Understand dual-stack networking and how IPv4 addresses are embedded in IPv6.

Transition

Detailed Explanation

IPv4-Mapped IPv6 Addresses

The address ::ffff:192.168.1.1 is an IPv4-mapped IPv6 address. Its expanded form is:

0000:0000:0000:0000:0000:ffff:c0a8:0101

Structure Breakdown

Groups Value Meaning
1-5 0000 80 bits of zeros
6 ffff IPv4-mapped marker
7 c0a8 192.168 in hex (c0=192, a8=168)
8 0101 1.1 in hex (01=1, 01=1)

How the IPv4 Address is Encoded

The last 32 bits hold the IPv4 address in hexadecimal:

192 = 0xc0    168 = 0xa8    1 = 0x01    1 = 0x01

So the last two groups become c0a8:0101.

Dual-Stack Networking

IPv4-mapped addresses allow IPv6 sockets to handle IPv4 connections transparently. When an IPv6 server socket receives a connection from an IPv4 client, the operating system represents the client's address as ::ffff:x.x.x.x. This is fundamental to dual-stack networking, where a single socket can serve both IPv4 and IPv6 clients.

Common Examples

IPv4 Address IPv4-Mapped IPv6
127.0.0.1 ::ffff:7f00:0001
10.0.0.1 ::ffff:0a00:0001
192.168.0.1 ::ffff:c0a8:0001
8.8.8.8 ::ffff:0808:0808

Use Case

IPv4-mapped addresses are used in dual-stack server applications, logging systems that need to normalize IPv4 and IPv6 addresses, load balancers, and reverse proxies. They appear in application logs, connection metadata, and access control lists.

Try It — IPv6 Expander / Compressor

Open full tool