How do I create a UNC to an IPv6 address?

Raymond Chen

Windows UNC notation permits you to use a raw IPv4 address in dotted notation as a server name: For example, net view \\ will show you the shared resources on the computer whose IP address is But what about IPv6 addresses? IPv6 notation contains colons, which tend to mess up file name parsing since a colon is not a valid character in a path component. Enter the domain. Take your IPv6 address, replace the colons with dashes, replace percent signs with the letter “s”, and append This magic host resolves back to the original IPv6 address, but it avoids characters which give parsers the heebie-jeebies.

Note that this magic host is resolved internally by Windows and never hits the network. It’s sort of a magic escape sequence.


Discussion is closed.

Feedback usabilla icon