XF 1.3 All users have the same IP

DennisSkov

Active member
Hi,

I just bought XenForo a couple of hours ago, and I'm all hyped about it. I did however find something weird. All users' IPs are the same. All IPs are shown as the IP of the server where my website is hosted. This is not a problem right now, as I'm still configuring XenForo, but some day it will be a small issue.

If anyone knows why this is happening, please tell :)

Kind regards

I found the problem. My webhost is running a cache, and therefore REMOTE_ADDR is shown as the servers address. Adding $_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_X_FORWARDED_FOR"]; to library/config.php solved the problem :)
 
Last edited:
Back
Top Bottom