Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: scottwj on May 13, 2005, 05:45:13 PM

Title: Where to find Remote IP address via PHP?
Post by: scottwj on May 13, 2005, 05:45:13 PM
I have a dynamic IP address from a DSL line and wish to be
able to get the address using PHP.
<?PHP
$_SERVER['REMOTE_ADDR']
?>
reports a LAN address. I assume there is a place where this is
translated/mapped to the external IP address, but where and how
to retrieve it?
Am using SME 6.0 w/ two NIC cards, one for internet, other
for LAN.

Thanks,
Scott Jones