From:             net dot gatekeeper at gmail dot com
Operating system: Linux
PHP version:      5.2CVS-2008-04-04 (snap)
PHP Bug Type:     *Web Server problem
Bug description:  REMOTE_ADDR returns the same ip as SERVER_ADDR

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 bug report at http://bugs.php.net/?id=44634&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44634&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44634&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44634&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44634&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44634&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44634&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44634&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44634&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44634&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44634&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44634&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44634&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44634&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44634&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44634&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44634&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44634&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44634&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44634&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44634&r=mysqlcfg

Reply via email to