經安全檢測,此網站為安全網站,請放心前往原始網址!

IPHostEntry GetHostEntry IPv6 or IPv4 ? - Experts Exchange - The network for technology professional

In the foreach loop, you can check the AddressFamily property of each address and return the first IPv4 one found. On my system, that's actually the third one in the list. static private IPAddress GetIP() { IPAddress thisIp = null; string ...

www.experts-exchange.com

網址安全性掃描由 google 提供