Know hostname of a computer.

By Rahul Saxena 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());
}

Rahul Saxena

Rahul K Saxena is working as a Technical Analyst in Noida, India. He is Masters in Computers Application. Here in the IT industry for more than 6+ years and his main technical skills include SharePoint 2010, MOSS 2007... Read more

COMMENT USING