Why No Built in GetMyIP call in LiveCode?
bobs at twft.com
Fri Jun 10 13:36:04 CDT 2011
He wants the local are network IP, not the public NAT address.
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
More information about the use-livecode