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 ... Read more

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