• 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: How do I get the identifier of the currently connected network interface?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get the identifier of the currently connected network interface?


  • Subject: Re: How do I get the identifier of the currently connected network interface?
  • From: Andreas Grosam <email@hidden>
  • Date: Sun, 11 Nov 2012 11:04:36 +0100

On 08.11.2012, at 05:20, MaurĂ­cio Linhares wrote:

> Any hints?
>
> I just need something like "en0", "vl0", just the identifier of the
> currently connected network. Is there a function that is going to give
> me this information?
>

Not sure what you mean with "currently connected network". But you may use the tools netstat or ifconfig in a shell in order to get the list of interfaces:

$ netstat -i

or

$ ifconfig -a

The man page has more info.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >How do I get the identifier of the currently connected network interface? (From: MaurĂ­cio Linhares <email@hidden>)

  • Prev by Date: How do I get the identifier of the currently connected network interface?
  • Next by Date: Re: How do I get the identifier of the currently connected network interface?
  • Previous by thread: How do I get the identifier of the currently connected network interface?
  • Next by thread: Re: How do I get the identifier of the currently connected network interface?
  • Index(es):
    • Date
    • Thread