Re: IP Address
Re: IP Address
- Subject: Re: IP Address
- From: Devon and Cornwall <email@hidden>
- Date: Thu, 8 Mar 2001 21:18:26 -0800
Jolly Roger Wrote:
>
set currentIP to ""
>
tell application "Network Setup Scripting"
<SNIP>
>
return currentIP
>
end tell
The interesting thing about this script is that it worked first time
out. Previous scripting attempts to do exactly this always returned
"0.0.0.0" (for a dial up using Remote Access or when using PPPoE).
The second time the script ran (several hours and a restart later)
the script returned "0.0.0.0" and so on for several tries. (yes we
were connected)
Later in the session it worked fine again.
Hummm, in TCP/IP under "options," "Active" IS checked, and "Load only
when needed" is NOT checked, but in tracking this seemingly
inconsistent behavior down, we found that unless a client app. like a
browser or email client has actually connected, the result will
always be "0.0.0.0"
Now, at least, we know why.
Back to the Network Info OSAX!
Cornwall and Devon
--Never wear a blue tie with a pink suit.