using System.Net;

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