Blog

Know hostname of a computer.

Posted 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
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
SPONSORED BY
  • MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.