Reply to Re: Server IP Address

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация