php.net |  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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: net dot gatekeeper at gmail dot com
New email:
PHP Version: OS:

Further comment on this bug is unnecessary.

 

 [2008-04-04 06:26 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-04 09:03 UTC] 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.
 [2022-02-11 12:17 UTC] tonyokazaki at gmail dot com
same issue on this sites as well :-
https://hentaihaven.mobi/

https://hentaihaven.pro/

https://hentaihaven.blog/

https://hentaihaven.one/

https://hentaihaven.plus/
 [2022-02-11 12:19 UTC] minaokazaki77 at gmail dot com
same issue on this sites as well :-
https://nhentai.pro/

https://nhentai.club/

https://nhentai.plus/

https://nhentai.blog/
 [2022-02-11 12:23 UTC] tonyokazaki54 at gmail dot com
https://kisshentai.us/

https://doujinmoe.pro/

https://doujins.pro/

https://ehentai.pro/
 [2022-02-11 12:23 UTC] minaokazaki7 at gmail dot com
https://hanime.us/

https://8muses.us/

https://animeporn.us/

https://familyguyporn.us/
 [2022-02-11 14:12 UTC] requinix@php.net
-Block user comment: No +Block user comment: Yes
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 14 05:01:29 2024 UTC