Re:IP Address
Re:IP Address
- Subject: Re:IP Address
- From: Devon and Cornwall <email@hidden>
- Date: Fri, 9 Mar 2001 09:39:02 -0800
At 8:59 PM +1300 3/9/01, <email@hidden> wrote:
>
BTW 'tcpip
>
configuration' belongum Akua.
Oooh, we hate it when that happens. Don't normally have Akua loaded
but we were doing some testing
However, this replaces the Akua line:
--caveat: when using PPP a client application such as a browser must
--have already connected once this session
set currentIP to ""
tell application "Network Setup Scripting"
try
try
open database
on error errmsg
if errmsg contains "already open" then
close database
open database
end if
end try
begin transaction
set thisConfig to the name of first TCPIP v4 configuration whose active is true
set currentIP to IP address of TCPIP v4 configuration named thisConfig
end transaction
close database
on error errmsg number ErrNum
abort transaction
close database
end try
return currentIP
end tell
Devon and Cornwall
--Two heads are better than one.