public string GetHostName(string ipAddress) { try { if (ipAddress != null) { IPHostEntry entry = Dns.GetHostEntry(ipAddress); if (entry != null) { return entry.HostName; } } } catch (SocketException) { // MessageBox.Show(e.Message.ToString()); } return null; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)