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, 11:57pm

There are 0 comments

Leave a comment of your own

Comments are currently closed.