我正在使用代码
string host = System.Net.Dns.GetHostName();
string hostname = Dns.GetHostEntry(host).HostName;
IPHostEntry ipEntry = Dns.GetHostEntry(host);
IPAddress[] addr = ipEntry.AddressList;
在本地它工作正常并给我“192.168.1.4”但在服务器端它给了“2002:cc5d:a178::cc5d:a178”