getting the user's (internet, not local network) IP address

Josh Mellicker josh at dvcreators.net
Thu May 13 23:15:40 EDT 2010


Does that get the internet IP or local IP?


On Mac, this returns:

usage: ipconfig <command> <args>
where <command> is one of waitall, getifaddr, ifcount, getoption, getpacket, set, setverbose



On May 13, 2010, at 7:24 PM, Michael Kann wrote:

> On Windows XP:
> 
> on mouseUp
> set the hideConsoleWindows to true
> put shell("ipconfig") into fld 1 // parse out what you want
> end mouseUp
> 
> 
> 
> --- On Thu, 5/13/10, Josh Mellicker <josh at dvcreators.net> wrote:
> 
>> From: Josh Mellicker <josh at dvcreators.net>
>> Subject: getting the user's (internet, not local network) IP address
>> To: "how to use Revolution" <use-revolution at lists.runrev.com>
>> Date: Thursday, May 13, 2010, 9:14 PM
>> Just thought I'd share this in case
>> it was of any use to anyone, and so at least one post on the
>> list is not about Steve Jobs and Apple's tyrannical actions
>> :-)
>> 
>> 
>> To get the user's (internet, not local network) IP address,
>> put a text file on your server with this code:
>> 
>> <?php echo $_SERVER['REMOTE_ADDR']; ?>
>> 
>> 
>> Then in your app:
>> 
>> get url "http://yourdomain.com/folder-you-put-the-php-file-in/your-php-filename.php"
>> 
>> 
>> Is there a better
>> way?_______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage
>> your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
> 
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list