Getting cross-platform IP address

Scott Slaugh xslaugh at hotmail.com
Wed Aug 27 21:39:33 EDT 2003


>Yay!
>I did not read your script right.  Thanks for responding to my dumb reply!  
>(In an environment in my dark past, variables were prefixed with 'the' and 
>I kept reading a variable name, not a property.)
>
>And this works on my OS X, too.
That's good to know.

>
>This also provides a hint as to why hostNameToAddress() does not work with 
>my computer name.  It needed ".local" after it.  Maybe my computer name is 
>not what I thought.
>
>I assume you are on Windows.  What OS?
I usually work on Windows XP.  But I have also tested that script on Windows 
98.

>
>BTW, on OS X getting the text up to the colon is not needed; it works with 
>all of the address.
I noticed that once when I was on a Mac.  However, I usually still have it 
get the text before the colon to make it cross-platform.

Scott Slaugh

_________________________________________________________________
Get MSN 8 and enjoy automatic e-mail virus protection.    
http://join.msn.com/?page=features/virus




More information about the use-livecode mailing list