How to Get Server Name in ASP.NET

Hi all,

Please let me know how to get server name in asp.net.  Thanks.

Regards,
Wilson
wclwongAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mgbm_itConnect With a Mentor Commented:
you can use
System.Environment.MachineName
0
 
Ioannis ParaskevopoulosCommented:
Hi,

Request.ServerVariables["SERVER_NAME"] 

Open in new window


Giannis
0
All Courses

From novice to tech pro — start learning today.