1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

All IPs are the same

Discussion in 'Troubleshooting and Problems' started by MordyT, Dec 6, 2011.

  1. MordyT

    MordyT Active Member

    I am having a weird problem. Anyone that visits my forum has the same IP - the IP being the IP of the my webserver. This problem first started after my webhost moved me to a new server.

    I know, sounds like a webhost problem. And so I bugged them, did my research, and finally am turning here as I am confused now.

    I have 3 forums (ok, more, but not important) on this server. 2 vB forums, one xF forum. I also have a few other scripts, such as wordpress and WHMCS to name a few.

    The vB and xF forums are showing all visitors from the same IP. WHMCS, which also records IPs, works fine and has the correct IP. So does wordpress.

    If you look at a phpmyinfo page, it does have the correct IP there as well.

    I did my goggling and found this topic:https://www.vbulletin.com/forum/showthread.php/239266-All-The-IP-Addresses-Are-The-Same as well as http://forum.triphp.com/web-hosting...tin-showing-all-users-servers-ip-address.html

    I also found several others and seemed to me I needed mod_rpaf installed.
    I spoke to the host and they did install it, but the issue remains.

    Which is why I am turning to the knowledgeable people here asking if they may have a idea on why my xF install is showing all users from the same IP.

  2. infis

    infis Well-Known Member

    Create file testip.php (for example) in root path of site with code:
    echo $_SERVER['REMOTE_ADDR'] . '<br />' . $_SERVER["HTTP_X_REAL_IP"];?>
    And in browser type http://yoursite/testip.php
    If two IP are identical, mod_rpaf means is installed and works correctly. If will be different, means or the unit is not installed, or the sheaf between frontend and backend servers is not set correctly up. It is quite probable that appropriate adjustment in nginx is not specified or that there at you is used.
    But generally it is strange that thus wordpress and WHMCS work correctly. Probably, they work on other ports around frontend.
    MordyT likes this.
  3. MordyT

    MordyT Active Member

    Yep, they are not the same. first it shows the servers ip, then it shows mine.
    I guess back to the webhost to ask them to fix it?
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  5. infis

    infis Well-Known Member

    Yes, it is possible to apply fix, but it will be even better to force than a hoster to make the operation - correctly to configure a hosting.
    Then it is not required to make change to each script.
  6. MordyT

    MordyT Active Member

    Thanks for all the help, the host was able to resolve it finally.
  7. Digital Doctor

    Digital Doctor Well-Known Member

    For the benefit of others ... can you ask the host what they did ? So others know what to ask for in the future ?
    Chimpie likes this.

Share This Page