Obtaining the public IP of a computer...

Nonsanity form at nonsanity.com
Wed Feb 9 10:32:30 EST 2011

If you want to know the address on the front of the building, you sorta have
to go outside and look. Or in this case, ask someone who's already outside
to tell you.

William's answer is probably your simplest and stablest bet. Drop it in the
msg box:

put URL "http://www.whatismyip.com/automation/n09230945.asp"

whatismyip has been around for many years, and is likely to remain. They
made that link exactly for the purpose we need it for here. They talk about
it in a post here:


Of course, if you have your own server, making a similar URL with the same
response isn't too hard, whatever your server flavor is. This has the added
benefit of giving you some usage statistics if you want to collect them.

 ~ Chris Innanen
 ~ Nonsanity

On Wed, Feb 9, 2011 at 8:35 AM, Paul Dupuis <paul at researchware.com> wrote:

> Okay, great suggestions from folks to use a hosted service to return the
> public IP of the computer a LiveCode app is running on, but, I have to ask
> because I am now curious, does anyone know of a way to do this that is not
> dependent upon a hosted service?
> --
> Paul Dupuis
> Cofounder
> Researchware, Inc.
> http://www.researchware.com/
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

More information about the Use-livecode mailing list