• 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
Getting local subnet mask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting local subnet mask


  • Subject: Getting local subnet mask
  • From: "Hamish Allan" <email@hidden>
  • Date: Fri, 29 Feb 2008 00:54:57 +0000

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Getting local subnet mask
      • From: Nathan Duran <email@hidden>
    • Re: Getting local subnet mask
      • From: Rich Kubota <email@hidden>
  • Prev by Date: Re: Create new PPP service
  • Next by Date: Re: Getting local subnet mask
  • Previous by thread: Re: Multihoming problem
  • Next by thread: Re: Getting local subnet mask
  • Index(es):
    • Date
    • Thread