MyBB Community Forums

Full Version: IP Address = 172.16.10.1 on all posts, possible solution is....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone,

Hope I reach you in good times.

One of my clients hosting accounts, uses a balanced load/Cluster server aka Mosso. When you post, the IP Address always resolves to 172.16.10.1, an internal address.

Poking around, I learned that this code needs to be used to record correct IP addresses.

Quote:$_SERVER['HTTP_X_CLUSTER_CLIENT_IP']

Instead of (example):

Quote:$_SERVER['REMOTE_ADDR']

What php file is this code present so I can modify and test it?

Thank you!

btcm
inc/functions.php in the get_ip function
DennisTT Wrote:inc/functions.php in the get_ip function

Dennis,

Worked great!

Thank you for the speedy reply. Hope this helps others too.

Have a great night.

btcm
Glad it's working for you.