Please visit: http://help.rackspacecloud.com Glossary   
Search  
   
Browse by Category
Please visit: http://help.rackspacecloud.com .: Web Programming .: Why does every visitor to my website have the same IP address?

Why does every visitor to my website have the same IP address?

Your script is calling for the "REMOTE_ADDR" and receives the IP of a server in front of one of our back-end servers. The web facing server is then passing the scripts output without giving the expected REMOTE_ADDR of the visitor. In order for your scripts to recognize that they are on a cluster and log the correct IP of your visitors, you will need to replace and add the code below.

For ASP:
Locate any lines of code that are similar to this snipper of code,
Request.ServerVariables("REMOTE_ADDR")
And replace it with this snipper of code,
Request.ServerVariables("HTTP_X_CLUSTER_CLIENT_IP")

For sites using SSL on ASP and PHP:
If you have SSL enabled for you domain you will need to replace "REMOTE_ADDR"  with "HTTP_X_FORWARDED_FOR" in your code.

How helpful was this article to you?

Related Articles

article How do I add an email address to the webmail address book?
1. Access your email account by using...

  9-30-2005    Views: 2858   
article What is a catchall address? How do I set a catchall address?
A catchall address is a designated mailbox...

  10-5-2005    Views: 3111   
article How do I add a website?
1. Log in to your control panel at...

  9-25-2005    Views: 5240   


.: Powered by Lore 1.5.6