• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IP Address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: IP Address
      • From: John W Baxter <email@hidden>
  • Prev by Date: Re: get my IP address (was Re: Eudora script works, but doesn't (?) (used to be "Re: Scripting in vain - please help :()")
  • Next by Date: Re: help with Tanaka's
  • Previous by thread: Re: IP Address
  • Next by thread: Re: IP Address
  • Index(es):
    • Date
    • Thread