Re: Get remote IP ot Host

From: Date: Mon, 05 Mar 2001 09:53:15 +0000
Subject: Re: Get remote IP ot Host
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42595@lists.php.net to get a copy of this message
> I have problem with "REMOTE_ADDR" or "REMOTE_DOST". > > "REMOTE_ADDR" always return me 127.0.0.1 (localhost) !!! > The php program is on remote server ( not locally ) - www.f2s.com. > > How can I get IP or HOST of the visitor ? The problem might be, there is a proxy / redirection on the same server. You might try HTTP_X_FORWARDED_FOR. ( or so... try test.php3 for exact info... ) -- Krankenhaus Martha-Maria Nuernberg EDV-Organisation Michael Meinl Tel: 0911/959-1493 -1493 Fax: 0911/959-1412 -1422 --- Linux - The choice of the GNU generation

« previous php.general (#42595) next »