Know hostname of a computer.

By Rahul Kumar Saxena Blogs | Learn .NET Sep 06, 2010
To find out the hostname of a computer use the below code...

using System.Net; 

protected void Page_Load(object sender, EventArgs e)
{
     Response.Write(Dns.GetHostName());
}

COMMENT USING

PREMIUM SPONSORS

Hire Mobile & Web Developer on demand. 100% satisfaction. Try for 1 week or Money Back. Local and remote developers available all over USA.

Latest Blogs