$_SERVER['REMOTE_ADDR'] same as $_SERVER['SERVER_ADDR']
Posted: Fri Apr 04, 2008 1:36 am
I have revised PhpFreeChat in my host, and it was working fine there.
Then, my contact installed it in his server and this problem showed up.
$_SERVER['REMOTE_ADDR'] returns the same value as his host address,
$_SERVER['SERVER_ADDR'].
I think this has something to do with some misconfiguration in either
Apache or Php, I just wasn't sure what it is.
Is there anything I can do to fix this problem? or is there a way how I
can get the client's IP in any way possible?
Here is a phpinfo() in his host -->
http://doujin-moe.com/chat2/servertest.php
Here is a phpinfo() in my host -->
http://www.gpdesignsph.com/dah/servertest.php
Then, my contact installed it in his server and this problem showed up.
$_SERVER['REMOTE_ADDR'] returns the same value as his host address,
$_SERVER['SERVER_ADDR'].
I think this has something to do with some misconfiguration in either
Apache or Php, I just wasn't sure what it is.
Is there anything I can do to fix this problem? or is there a way how I
can get the client's IP in any way possible?
Here is a phpinfo() in his host -->
http://doujin-moe.com/chat2/servertest.php
Here is a phpinfo() in my host -->
http://www.gpdesignsph.com/dah/servertest.php