How to determine programmatically in C # if IPv6 is supported?

I am writing C # programming, getting the loopback IP address of the server. How can I programmatically determine in C # if IPv6 is supported?

+4
source share
1 answer

You can verify this by accessing this property.

System.Net.Sockets.Socket.OSSupportsIPv6;

Information http://msdn.microsoft.com/library/system.net.sockets.socket.ossupportsipv6(v=vs.110).aspx

+5
source

Source: https://habr.com/ru/post/1568023/


All Articles