RA-Status work-around
RA-Status work-around
- Subject: RA-Status work-around
- From: "Christopher C. Stone" <email@hidden>
- Date: Thu, 5 Apr 2001 00:50:14 -0500
Greetings,
Well, it seems the work-around has a flaw that prevents the IP address from being returned until the open connection is actually used:
At 17:56 -0700 04/04/2001, Devon and Cornwall wrote:
>
On my system (also a dial up) I get "0.0.0.0" unless a client application
>
such as Eudora has already connected once.
>
>
If I simply log on and try it I get the zeros.
>
>
However, if I log on and get mail (connect with Explorer etc.), I then get
>
my current IP address. Is your experience different from this?
And Nigel pointed out that some tersification was in order:
---------------------------------------------------------------------------
with timeout of 2 seconds
tell application "Network Setup Scripting"
try
open database
set ipAddress to IP address of (first TCPIP v4 configuration whose active is true)
end try
close database
end tell
end timeout
if ipAddress is not "0.0.0.0" then
set ipOnFlag to true
end if
---------------------------------------------------------------------------
--
Best Regards,
Christopher Stone
______________________________
StoneWorks Computer Consulting
email@hidden