Client IP from Request.ServerVariables("REMOTE_ADDR") is Always the Same

If your scripts use Request.ServerVariables("REMOTE_ADDR") to get the client's IP address, they will always show the same, internal IP address due to the load balancers used for hosting your site. You can get the client's remote IP using Request.ServerVariables("HTTP_X_CLUSTER_CLIENT_IP") instead.
  • 9 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Related Articles

Determining if a Connection is Using SSL

Due to the way our hosting system handles SSL connections (dedicated SSL hardware), the...

Creating Virtual Directories for .Net Application Roots

By default, the root of your site is already configured as a .Net application root. If you need...

How do I add impersonation to my ASP.NET site?

Adding impersonation allows the web server process to run as your primary FTP user. This means...

Reloading an ASP.NET Application

Due to the load balanced environment we host your site under, IIS isn't currently able to detect...