|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44634 REMOTE_ADDR returns the same ip as SERVER_ADDR
Submitted: 2008-04-04 06:26 UTC Modified: 2022-02-11 14:12 UTC
From: net dot gatekeeper at gmail dot com Assigned:
Status: Not a bug Package: *Web Server problem
PHP Version: 5.2CVS-2008-04-04 (snap) OS: Linux
Private report: No CVE-ID: None
 [2008-04-04 06:26 UTC] net dot gatekeeper at gmail dot com
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 -->

Here is a phpinfo() in my host -->


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-04 09:03 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

The server is sitting behind a proxy of some kind, this has nothing to do with PHP since it gets those values from the SAPI, in this case Apache 2.
 [2022-02-11 12:17 UTC] tonyokazaki at gmail dot com
same issue on this sites as well :-
 [2022-02-11 12:19 UTC] minaokazaki77 at gmail dot com
same issue on this sites as well :-
 [2022-02-11 12:23 UTC] tonyokazaki54 at gmail dot com
 [2022-02-11 12:23 UTC] minaokazaki7 at gmail dot com
 [2022-02-11 14:12 UTC]
-Block user comment: No +Block user comment: Yes
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 03:01:27 2024 UTC