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. 

Bob


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 10.58.0.109. However, when I went in and looked at my 
> machines IP it was 10.58.0.42.
> 
> 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
> SUSD


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to