Obtaining the public IP of a computer...

Alex Tweedly alex at tweedly.net
Wed Feb 9 05:47:04 EST 2011


PHP ? But we have irev ...

You can use
http://www.tweedly.org/whatismyip.irev

Or if you have your own rev server / on-rev account you can have a 
script that does

> <?rev
>
> put $_SERVER["REMOTE_ADDR"] & CR
>
> ?>
-- Alex.



On 09/02/2011 07:51, David C. wrote:
> On Tue, Feb 8, 2011 at 8:43 PM, Paul Dupuis<paul at researchware.com>  wrote:
>
> Hello Paul,
> If you have access to a reliable web server that will run PHP, then
> you can use this code:
>
> <?php
>
>      if (getenv(HTTP_X_FORWARDED_FOR)) {
>          $pipaddress = getenv(HTTP_X_FORWARDED_FOR);
>          $ipaddress = getenv(REMOTE_ADDR);
> echo "Your Proxy IPaddress is : ".$pipaddress. "(via $ipaddress)" ;
>      } else {
>          $ipaddress = getenv(REMOTE_ADDR);
>          echo "$ipaddress";
>      }
> ?>





More information about the use-livecode mailing list