Fwd: How do you display the IP Address?
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