using System.Net;
protected void Page_Load(object sender, EventArgs
e)
{
Response.Write(Dns.GetHostName());
}
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());
}
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · Learn .NETCSharp 13 and .NET 9 Scripting Guide (Run .cs Without Projects)Download nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Join the conversation! Your thoughts help the community grow.