Bug #44634 [Com]: REMOTE_ADDR returns the same ip as SERVER_ADDR

From: Date: Fri, 11 Feb 2022 12:17:02 +0000
Subject: Bug #44634 [Com]: REMOTE_ADDR returns the same ip as SERVER_ADDR
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239661@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=44634&edit=1

 ID:                 44634
 Comment by:         tonyokazaki at gmail dot com
 Reported by:        net dot gatekeeper at gmail dot com
 Summary:            REMOTE_ADDR returns the same ip as SERVER_ADDR
 Status:             Not a bug
 Type:               Bug
 Package:            *Web Server problem
 Operating System:   Linux
 PHP Version:        5.2CVS-2008-04-04 (snap)
 Block user comment: N
 Private report:     N

 New Comment:

same issue on this sites as well :-
https://hentaihaven.mobi/

https://hentaihaven.pro/

https://hentaihaven.blog/

https://hentaihaven.one/

https://hentaihaven.plus/


Previous Comments:
------------------------------------------------------------------------
[2008-04-04 09:03:07] scottmac@php.net

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 http://www.php.net/support.php 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.

------------------------------------------------------------------------
[2008-04-04 06:26:33] net dot gatekeeper at gmail dot com

Description:
------------
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



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=44634&edit=1


Thread (7 messages)

« previous php.bugs (#239661) next »