November 26th, 2008
Converting an IP address to a Hostname, and back with C# - 1

If you are using TCP/IP connections in your C# application you will need to look up DNS addresses. The following article shows how you can convert an IP address to a hostname, and a hostname to an IP address. Other common uses are to find the hostname address of the local machine, and all its IP addresses — each of which we will show in the examples below.



Except where otherwise noted, content on this site is