IPHostEntry host = Dns.GetHostEntry(Dns.GetHostName()); var ippaddress = host .AddressList .FirstOrDefault(ip => ip.AddressFamily == AddressFamily.InterNetwork);
IPHostEntry host = Dns.GetHostEntry(Dns.GetHostName()); var ippaddress = host .AddressList .FirstOrDefault(ip => ip.AddressFamily == AddressFamily.InterNetwork);