Why No Built in GetMyIP call in LiveCode?

Bob Sneidar bobs at twft.com
Fri Jun 10 13:35:08 CDT 2011

This works for me. Methinks it is going to give you the address of the primary adapter. Do you have multiple adapters? Any bridging going on, like with Parallels networking? Also, if the hostname function is using DNS, then it may be that your DNS records are stale. This is just a guess though. 


On Jun 10, 2011, at 11:12 AM, John Patten wrote:

> Thanks for the quick replies!
> I thought I had it figured out with Devin's suggestion. Everything seemed to work with this script:
> on mouseUp
>   put the hostname into tHostName
>   --wait 1 sec
>   put the hostnametoaddress of tHostName
> end mouseUp
> The address returned However, when I went in and looked at my machines IP it was
> I wonder where it got the 10.x.x.109 from?
> Mark, I'm assuming there is a shell script for Ubuntu too that will do the same parse action as your script example?  Your example should help me to understand how to parse the shell script.
> Thank you!
> John Patten

More information about the use-livecode mailing list