Always 'localhost' from Request.ServerVariables["SERVER_NAME"]

  • Thread starter Thread starter L Scott
  • Start date Start date
L

L Scott

I am wanting to get the machine name that is running IIS. I have code in
the 'Application_BeginRequest' event of the Global.asax and even if I access
the web site from another machine I am always getting 'localhost' in the
SERVER_NAME variable. Any way to get the actual machine name?

LWS
 
Back
Top