• 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: machine IP address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: machine IP address


  • Subject: Re: machine IP address
  • From: James Nierodzik <email@hidden>
  • Date: Tue, 25 Jul 2006 15:39:47 -0500

Absolutely correct it's cheap, it's dirty, it's one line.. and for 70% of applications prolly ok.

J

On Jul 25, 2006, at 3:36 PM, Mark J. Reed wrote:

That still assumes that en0 is the one you want for internal.  It
might be en1 or fw0 or something else...


On 7/25/06, James Nierodzik <email@hidden> wrote:

opps, sent this to just Martin last time LOL so here we go again


Nice, though I would hope your loopback is already known =)

Internal/External one line style

set {Ext_IP, Int_IP} to {word 25, word 32} of (do shell script "curl
checkip.dyndns.org;ipconfig getifaddr en0")

James Nierodzik
System Administrator

FireStar Communications
211 E Ontatrio, Suite 700
Chicago, IL 60611

tel: 312.649.0900 ext. 134
www.firestarcom.com




On Jul 25, 2006, at 3:20 PM, Martin Orpen wrote:


On 25 Jul 2006, at 7:59 pm, Mark J. Reed wrote:


"the" IP address? Which one?

How about all of them:


tell application "Automator" set foo to call method "currentHost" of class "NSHost" set bar to call method "names" of foo set woo to call method "addresses" of foo end tell bar & return & woo


:-)

--
Martin Orpen


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list
(email@hidden)
Help/Unsubscribe/Update your Subscription:
@firestarcom.com


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list
(email@hidden)
Help/Unsubscribe/Update your Subscription:
40mail.com


This email sent to email@hidden




--
Mark J. Reed <email@hidden>

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >machine IP address (From: Bob Cuilla <email@hidden>)
 >Re: machine IP address (From: "Mark J. Reed" <email@hidden>)
 >Re: machine IP address (From: Martin Orpen <email@hidden>)
 >Re: machine IP address (From: James Nierodzik <email@hidden>)
 >Re: machine IP address (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: machine IP address
  • Next by Date: Re: machine IP address
  • Previous by thread: Re: machine IP address
  • Next by thread: Re: machine IP address
  • Index(es):
    • Date
    • Thread