Posted by Fred Atkinson on 10/05/58 11:20
On Tue, 05 Jul 2005 22:17:11 +1200, Chris Hope
<blackhole@electrictoolbox.com> wrote:
>$_SERVER['SERVER_ADDR'] gives you the server
>$_SERVER['REMOTE_ADDR'] gives you the client
I tried the server one.
As I have the server on a private IP address on my network, it
returned a private IP address rather than the gateway. I didn't think
that would happen since that IP address was translated through my
network's NAT in my gateway router.
Is there a function that would return the gateway (public) IP
address instead?
Fred
[Back to original message]
|