[Wolves] PHP behind Smoothwall

Jon Farmer jon at viperdude.org
Thu Jun 17 14:49:32 BST 2004


> Has anyone ever come across a problem with PHP behind smoothwall having
> $REMOTE_ADDR containing "localhost" rather than the external facing
> ip/dns.
>
> My PHP server is on my Green Interface I have portforwarded etc but my PHP
> scripts are either giving 192.168.0.119 or localhost instead of the IP
> given to
> me by Telewest through Smoothwall 82.some.thing.blah
>
> Any thoughts?


$REMOTE_ADDR part of the $_SERVER global array and will always return the
IP the the webserver ie APACHE is bound to

-- 
Jon Farmer
Telford, Shropshire, UK
http://www.viperdude.org




More information about the Wolves mailing list