The following will get the name of the local machine in .NET and C#.
System.Environment.MachineName
HttpContext.Current.Server.MachineName
System.Net.Dns.GetHostName()
The following will get the name of the local machine in .NET and C#.
System.Environment.MachineName
HttpContext.Current.Server.MachineName
System.Net.Dns.GetHostName()