Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting local subnet mask



Hi,

Is there a way to programmatically discover a machine's subnet mask?

I can see how this might be done using AppleScript to query System
Preferences but I'm hoping for something a bit more portable than that
(yes I know this is a Mac list but I think some members have wider
expertise. Also, the only 3 results for mailing lists returned from
googling "network programming mailing list" are for this one!)

Preferably in cross-platform Python, but beggars can't be choosers :)

Hamish
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.