• 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
Fwd: How do you display the IP Address?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: How do you display the IP Address?


  • Subject: Fwd: How do you display the IP Address?
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 26 Aug 2009 11:37:38 -0400

---------- Forwarded message ----------
From: Mark J. Reed <email@hidden>
Date: Wed, Aug 26, 2009 at 11:37 AM
Subject: Re: How do you display the IP Address?
To: "Ripka, Herb" <email@hidden>


On Wed, Aug 26, 2009 at 11:05 AM, Ripka, Herb<email@hidden> wrote:
> I get different IP addresses when I use the following:
>
> set ipAddress to do shell script "ipconfig getifaddr en0"
> set otherIP to IPv4 address of macInfo

Then probably your primary IP address isn't the one on the en0
interface. OMM en0 is wired Ethernet and en1 is wireless and I'm using
wireless, so (IPv4 address of (system info)) returns the same result
as `ipconfig getifaddr en1`.

I could be using both; a system can have more than one IP address.
Not sure what system info returns in that case.

And of course the address I see there is not the one I use to access
my system over the Internet, since it's behind a NAT gateway.

> What is the difference between an internal IP address and an IPv4?

All IP addresses of the form "nnn.nnn.nnn.nnn" are specifically IP
version 4 addresses.  There's also  IP version 6, whose addresses are
longer and include colons and usually letters, e.g.
"fe80::21c:42ff:fe00" (which is short for the full address
"fe80:0000:0000:0000:021c:42ff:fe00").

--
Mark J. Reed <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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: How do you display the IP Address?
      • From: Emmanuel LEVY <email@hidden>
References: 
 >Re: How do you display the IP Address? (From: "Ripka, Herb" <email@hidden>)

  • Prev by Date: How do you display the IP address
  • Next by Date: Re: How do you display the IP Address?
  • Previous by thread: Re: How do you display the IP Address?
  • Next by thread: Re: How do you display the IP Address?
  • Index(es):
    • Date
    • Thread