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

Re: Get IP Address


  • Subject: Re: Get IP Address
  • From: Ian Ferguson <email@hidden>
  • Date: Tue, 21 Oct 2003 16:51:24 -0400

Hi Paul:

If you were behind a router, this may not work. An address such as 192.168.0.XXX could be returned and not a true external IP address.

I also think that you could sum this up on one line.

display dialog "IP:" default answer (do shell script "ifconfig en0 | grep 'inet' | awk '{print $2}'")

On Oct 21, 2003, at 4:02 PM, Paul Skinner wrote:

word 2 of (do shell script "/sbin/ifconfig en0 inet | /usr/bin/grep
inet")
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Get IP Address
      • From: Steve Mills <email@hidden>
References: 
 >Re: Get IP Address (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: Get IP Address
  • Next by Date: Re: Finder scripting dies
  • Previous by thread: Re: Get IP Address
  • Next by thread: Re: Get IP Address
  • Index(es):
    • Date
    • Thread