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

XF 1.4 Members With Server IP Address

Tracy Perry

Well-known member
I use OpenShift server.
When setting XenForo, members are displayed as server IP address.
How can I fix it?

Are you using a proxy service? If so, there is a config.php entry that you can make to grab the correct IP.
I used to use CloudFlare and had to use this
in config.php and it solved that issue.

Some posts I found using the search term $_SERVER['REMOTE_ADDR turned up this
Last edited:

Tracy Perry

Well-known member
In config.php, I added this code and it is very effective
That indicates that your hosting provider is using a proxy on the front end (could be nginx or varnish or something similar). You may not have known about it if you are on shared hosting, but glad it resolved the problem.