Get Host by IP adress

Shows how to retrieve the hostname from a given IP adress.
string IPAdress = "127.0.0.1"; IPHostEntry IPHostEntryObject = Dns.GetHostEntry(IPAdress); Console.WriteLine(IPHostEntryObject.HostName);

Url: http://www.jonasjohn.de/snippets/csharp/get-host-by-ip-adress.htm

Language: C# | User: ShareMySnippets | Created: Oct 16, 2013