Hi Trapulo,
As I know, the HTTP_HOST variable comes from the HTTP request sent by
client and doesn't depend on any server side settings. For example:
If I access my site via:
http://localhost/servervar.aspx , the
HTTP_HOST returned should be localhost.
http://servername:8080/servervar.aspx should be servername:8080.
http://www.domain.com/servervar.aspx should be
www.domain.com.
So a suppose of mine is if you also have something like a reverse
proxy installed on the server, which catch the first-hand request and
then relay it to IIS. In this case, it's expected that the request
recevied by IIS could be localhost..
To track down this point, you can simply look at the REMOTE_ADDR
variable:
Context.Request.ServerVariables["REMOTE_ADDR"]
See if it's actually your remote client's IP address. I assume it
isn't and if so there must be something in the middle.
Looking forward to your findings.
Best regards,
WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! -
www.microsoft.com/security