Why No Built in GetMyIP call in LiveCode?
userev at canelasoftware.com
Fri Jun 10 15:38:16 CDT 2011
On Jun 10, 2011, at 11:15 AM, Nonsanity wrote:
> Neither of the solutions given so far in this thread have worked for my on
> my office PC. I just get my LAN 192.168.x.x number. Here's what I use. They
> do rely on outside entities, but they are both pretty stable sites that have
> lasted a good long time...
> put url "http://www.whatismyip.org" into myExIP
> put url "http://checkip.dyndns.org" into resp
> set itemdel to ":"
> put word 1 to -1 of item 2 of resp into resp
> set itemdel to "<"
> put item 1 of resp into myExIP
> ~ Chris Innanen
> ~ Nonsanity
My solution was designed to give you your internal ip number. Getting your WAN ip number is a different story. Getting it from whatismyip.com will work.
More information about the use-livecode