See
http://msdn.microsoft.com/library/de...rvariables.asp
for the intended meaning of the SERVER_NAME server variable. For the local
machine name on the server, try using System.Environment.MachineName
instead.
HTH,
Nicole
"L Scott" <> wrote in message
news:...
>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
>
>