Platform SDK: Windows Sockets

Text Representation of IPv6 Addresses

This section is copied from the IP Version 6 Addressing Architecture by R.Hinden and S. Deering. There are three conventional forms for representing IPv6 addresses as text strings:

Note  It is not necessary to write the leading zeros in an individual field, but there must be at least one numeral in every field (except for the case described in the second form).