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

XF 1.2 Forum shows 0 guests all the time

#1
Hello,

I just shared a post on facebook, goo.gl says 300 people clicked on the link. But my forum is always showing 0 guests. I even tried another laptop to see if it works and it's 0 guests all the time.

How to fix this problem? I fear there's a problem with the online status on my forum.

Thank you!
 

Mike

XenForo developer
Staff member
#6
If all the IPs are the same, there's definitely a "reverse proxy" in there. There are ways to workaround it, though it's usually preferable for the host to workaround it at that level (as it affects web server logs and all applications, for example). I would recommend contacting them. At the least, if they won't deal with it at the web server level (with something like mod_rpaf), they should be able to tell you the HTTP header that contains the original IP.
 
#7
So here's a brief of this issue:

All registered members and guests have the same IP = the IP of the server. So my hosting referred me to this tutorial (post 7):

http://xenforo.com/community/threads/always-1-guest-online.23143/

I tried that and now all guests and members have this IP: 0.0.0.0

We tried this too:

Code:
if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
With no success!

Appreciate any help and my hosting is helping me to sort this issue too!

Thanks!
 

Mike

XenForo developer
Staff member
#8
That is a common fix. Have you confirmed that the original IP (only) is in that header/$_SERVER variable?