One can use either UNC or IPv4 address to connect to a shared folder on a remote machine using
net use, e.g.:
net use \remotePCSharedFolder // valid net use \184.108.40.206SharedFolder // valid
Is it possible for user to connect using IPv6 as well? Is it something that needs to be configured separately but is technically possible? If I try to specify IPv6 address, I get error 53:
The network path was not found.
The reason I’m asking is because one of my programs accepts a remote shared folder location as an input parameter – I need to evaluate whether the location is valid. I know it’s valid if it’s a UNC path or an IPv4 address, but am not sure if IPv6 should be allowed or simply result in an error.
As documented by Microsoft:
For example, for the following IPv6 address:
an example for a share might be the following:
For more, see: How do I create a UNC to an IPv6 address?
Also note that, strangely enough, Microsoft doesn’t actually own that domain name, and the actual owner is unknown. While Windows shouldn’t send these queries out to the network, there is still the possibility of leakage if this sort of literal gets reused in other contexts. You would be well advised to set up DNS for your network.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.