Check if server is accessible via IPv6?
有可能检查服务器是否可以通过IPv6与c#访问?
遍历从Dns.GetHostEntry返回的地址列表,并检查是否有任何IsIPv6xxxx
属性设置为true
It depends on what you mean - if you know (or can resolve) the server's hostname or DNS name to an IPv6 address, it should be possible for you to do a couple of things.
You could either send a test packet using IPv6 to the server and see if you get a response back. Alternatively, if you're going IPv6 all the way, you could change your own network layer to be IPv6 only. On newer releases of Windows server I believe you can switch IPv6 on and IPv4 off.
Hope that helps!
链接地址: http://www.djcxy.com/p/6926.html上一篇: 有关数据封装的C#设计问题
下一篇: 检查服务器是否可以通过IPv6访问?