localhost with $REMOTE ADDR

From: Date: Sat, 28 Apr 2001 12:25:58 +0000
Subject: localhost with $REMOTE ADDR
Groups: php.general 
Request: Send a blank email to php-general+get-50751@lists.php.net to get a copy of this message
Hi! I'm writting a PHP script which has to print the IP address of a visitor, I'm using the variable $REMOTE_ADDR. I've seen it working on other servers, but for me it doesn't work, if I visit the script I allways get ip 127.0.0.1 and localhost as a name. The script is on a webserver, not on my PC. Thanxalot, Greetings,
                        Johannes Rumpf


« previous php.general (#50751) next »