Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 865729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:41:03+00:00 2026-05-15T09:41:03+00:00

In the OS X System Preferences, when I click on ‘Network’ I see a

  • 0

In the OS X System Preferences, when I click on ‘Network’ I see a green dot by ‘Ethernet’, and red dots by ‘AirPort’ and ‘FireWire’. This is because I turned off AirPort and FireWire, as I access networks and the Internet via Ethernet.

I need to programmatically determine which of these network services displayed in System Preferences have green dots and which have red dots. For Ethernet and FireWire the displayed status is ‘Connected’ or ‘Not Connected’, and for AirPort the displayed status is ‘On’ or ‘Off’. Perhaps other network services have other status labels.

I have picked through all the plist files in ‘/Library/Preferences/SystemConfiguration’, particularly ‘preferences.plist’ and ‘NetworkInterfaces.plist’. I can get all sorts of information there, such as the Location set, network service order, proxy information (which is also important to my task), but I cannot find how to determine whether a given network service is on or off–the equivalent of having the green dot displayed.

I have also tried using System Configuration framework, specifically the SCNetworkConnectionGetStatus function, but all I get are invalid connection statuses.

Does anyone know how to actually retrieve this connection status information?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T09:41:04+00:00Added an answer on May 15, 2026 at 9:41 am

    The green and red dots in the Control pannel generally correlate to the the output of the ifconfig command on OSX.

    Typically and it can vary from computer to computer, en0 will be the ethernet port and en1 the airport. (At least on all the Macbook pros I use)

    It looks like you can use ifconfig -m to get information about supported media.

    $ ifconfig -m en0
    en0: flags=8863 mtu 1500
        ether (redacted)
        media: autoselect
        status: inactive
        supported media:
            media autoselect
            media 10baseT/UTP mediaopt half-duplex
            media 10baseT/UTP mediaopt full-duplex
            media 10baseT/UTP mediaopt full-duplex mediaopt hw-loopback
            media 10baseT/UTP mediaopt full-duplex mediaopt flow-control
            media 100baseTX mediaopt half-duplex
            media 100baseTX mediaopt full-duplex
            media 100baseTX mediaopt full-duplex mediaopt hw-loopback
            media 100baseTX mediaopt full-duplex mediaopt flow-control
            media 1000baseT mediaopt full-duplex
            media 1000baseT mediaopt full-duplex mediaopt hw-loopback
            media 1000baseT mediaopt full-duplex mediaopt flow-control
            media none
    

    Seeing 10xxbaseT is usually a good sign it’s ethernet.

    Wireless doesn’t seem to report any supported media.

    The man page for ifconfig has a ton of information but there may be some system libraries for programatically accessing this information that I’m unaware of but this should get you started.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to click a radio-button in System Preferences if another radio-button is selected,
The 'click sound' in question is actually a system wide preference, so I only
It seems that I can't control the NSApp delegate from within a System Preferences
I have an employees table, and I want to track their Operating System preferences.
System.IO.Directory.GetFiles() returns a string[] . What is the default sort order for the returned
System.IO.BinaryReader reads values in a little-endian format. I have a C# application connecting to
System.Drawing.Color objects apparently won't serialize with XmlSerializer. What is the best way to xml
The system I am currently working on requires some role-based security, which is well
Are System.IO.Compression.GZipStream or System.IO.Compression.Deflate compatible with zlib compression?
The System.Windows.Threading.DispatcherObject class (which DependencyObject is based on) contains a useful function, called CheckAccess()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.