• 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
Discovering the default gateway address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Discovering the default gateway address


  • Subject: Discovering the default gateway address
  • From: "R. Tyler Ballance" <email@hidden>
  • Date: Sat, 3 Feb 2007 20:47:03 -0600

Howdy, I'm trying to have my C/ObjC application discover the default gateway address so I can perform some diagnostics (including checking if the router supports UPnP and NAT-PMP, etc) and I have a bit of C code (that doesn't work) so I'm curious as to whether there is a higher level Cocoa abstraction that will return this information to me?

NSWorkspace and NSHost don't seem to offer a means of obtaining the information, and my C code returns a lot of entries (xxx.xxx.128.1) but none that are my default gateway. Are there any higher level abstractions through Cocoa that will return this information to me?


Cheers R. Tyler Ballance: Lead Mac Developer at bleep. software contact: email@hidden | jabber: email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Discovering the default gateway address
      • From: Kay Roepke <email@hidden>
  • Prev by Date: Re: Binding NSTextField to an Unsigned int
  • Next by Date: mouseMoved in NSTextView
  • Previous by thread: Re: Strange results with NSDateComponents vs NSCalendarDate
  • Next by thread: Re: Discovering the default gateway address
  • Index(es):
    • Date
    • Thread