csharp Get HostName

string hostName = System.Net.Dns.GetHostName();
sb.AppendFormat("<h1>{0}</h1>", hostName);
Retrieves the HostName, for identifying the server. See MSDN.

Updated: Thursday 7th April 2011, 08:28pm

There are 0 comments

Leave a comment of your own

Comments are currently closed.