Forums / Cotonti / Support / cotonti records the wrong ip

diablo
#1 2012-05-07 00:05

for some reason every single user has the same ip.

and i checked it via superglobals

$_SERVER['HTTP_CLIENT_IP'] -> returns my real ip

$_SERVER['HTTP_X_FORWARDED_FOR'] -> empty

$_SERVER['REMOTE_ADDR'] -> returns the ip my site is recording and its related to the domain company

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
Trustmaster
#2 2012-05-07 06:42

Currently we have support for $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'], $_SERVER['HTTP_X_REAL_IP'], $_SERVER['HTTP_X_FORWARDED_FOR'] and $_SERVER['REMOTE_ADDR']. Open an issue on GitHub to add $_SERVER['HTTP_CLIENT_IP'] to this happy family.

May the Source be with you!