Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IPAddress::IsIPv4MappedToIPv6 Property

.NET Framework 4.6 and 4.5

Gets whether the IP address is an IPv4-mapped IPv6 address.

Namespace:  System.Net
Assembly:  System (in System.dll)

property bool IsIPv4MappedToIPv6 {
	bool get ();

Property Value

Type: System::Boolean
Returns Boolean.
true if the IP address is an IPv4-mapped IPv6 address; otherwise, false.

Dual-stack sockets always require IPv6 addresses. The ability to interact with an IPv4 address requires the use of the IPv4-mapped IPv6 address format. Any IPv4 addresses must be represented in the IPv4-mapped IPv6 address format which enables an IPv6 only application to communicate with an IPv4 node. The IPv4-mapped IPv6 address format allows the IPv4 address of an IPv4 node to be represented as an IPv6 address. The IPv4 address is encoded into the low-order 32 bits of the IPv6 address, and the high-order 96 bits hold the fixed prefix 0:0:0:0:0:FFFF. The IPv4-mapped IPv6 address format is specified in RFC 4291. For more information, see www.ietf.org/rfc/rfc4291.txt.

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft