Re: How do you display the IP Address?
Re: How do you display the IP Address?
- Subject: Re: How do you display the IP Address?
- From: Emmanuel LEVY <email@hidden>
- Date: Wed, 26 Aug 2009 22:27:47 +0200
On Aug 26, 2009, at 5:37 PM, Mark J. Reed wrote:
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.
I checked on a machine with 3 Ethernet addresses: 2 public addresses
and one local address.
- IPv4 address of (system info) prudently returns... missing value,
- ipconfig getifaddr en0 returns one of the public addresses,
- ipconfig getifaddr en1 returns the local address.
Not that I would need to, but I don't know how to grab the second
public address.
Emmanuel
_______________________________________________
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