EDN Admin
Well-known member
How to convert IPv6 address shortened/alternative formats to preferred IPv6 address ? Is there any method in .net can be used?
The preferred IPv6 address representation is: <tt class="xph xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx</tt> where each <tt class="xph x</tt> is a hexadecimal digit representing 4 bits.
In addition to this preferred format, IPv6 addresses may be specified in two other shortened formats:
Omit leading zeros <br/>
Specify IPv6 addresses by omitting leading zeros. For example, IPv6 address <tt class="xph 1050:0000:0000:0000:0005:0600:300c:326b</tt> may be written as <tt class="xph 1050:0:0:0:5:600:300c:326b</tt>. Double colon <br/>
Specify IPv6 addresses by using double colons (<tt class="xph ::</tt>) in place of a series of zeros. For example, IPv6 address <tt class="xph ff06:0:0:0:0:0:0:c3</tt> may be written as <tt class="xph ff06::c3</tt>. Double colons may be used only once in
an IP address.
These two types of IPv6 addresses use this alternative format:
IPv4–mapped IPv6 address <br/>
This type of address is used to represent IPv4 nodes as IPv6 addresses. It allows IPv6 applications to communicate directly with IPv4 applications. For example, <tt class="xph 0:0:0:0:0:ffff:192.1.56.10</tt> and <tt class="xph ::ffff:192.1.56.10/96</tt> (shortened
format). IPv4–compatible IPv6 address <br/>
This type of address is used for tunneling. It allows IPv6 nodes to communicate across an IPv4 infrastructure. For example, <tt class="xph 0:0:0:0:0:0:192.1.56.10</tt> and <tt class="xph ::192.1.56.10/96</tt> (shortened format).<hr class="sig Elaine
View the full article
The preferred IPv6 address representation is: <tt class="xph xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx</tt> where each <tt class="xph x</tt> is a hexadecimal digit representing 4 bits.
In addition to this preferred format, IPv6 addresses may be specified in two other shortened formats:
Omit leading zeros <br/>
Specify IPv6 addresses by omitting leading zeros. For example, IPv6 address <tt class="xph 1050:0000:0000:0000:0005:0600:300c:326b</tt> may be written as <tt class="xph 1050:0:0:0:5:600:300c:326b</tt>. Double colon <br/>
Specify IPv6 addresses by using double colons (<tt class="xph ::</tt>) in place of a series of zeros. For example, IPv6 address <tt class="xph ff06:0:0:0:0:0:0:c3</tt> may be written as <tt class="xph ff06::c3</tt>. Double colons may be used only once in
an IP address.
These two types of IPv6 addresses use this alternative format:
IPv4–mapped IPv6 address <br/>
This type of address is used to represent IPv4 nodes as IPv6 addresses. It allows IPv6 applications to communicate directly with IPv4 applications. For example, <tt class="xph 0:0:0:0:0:ffff:192.1.56.10</tt> and <tt class="xph ::ffff:192.1.56.10/96</tt> (shortened
format). IPv4–compatible IPv6 address <br/>
This type of address is used for tunneling. It allows IPv6 nodes to communicate across an IPv4 infrastructure. For example, <tt class="xph 0:0:0:0:0:0:192.1.56.10</tt> and <tt class="xph ::192.1.56.10/96</tt> (shortened format).<hr class="sig Elaine
View the full article