0

How can I programmatically determine whether network is available on mac os or not?

Mohit Jain
  • 30,259
  • 8
  • 73
  • 100
andy
  • 89
  • 7
  • **Take a look at these** http://stackoverflow.com/questions/7627058/how-to-determine-internet-connection-in-cocoa http://stackoverflow.com/questions/2995822/check-internet-connection-in-cocoa-application – Peter Ahlberg Jun 25 '15 at 08:11
  • There is no Mac that has no network hardware. So, do you mean "any network interface on", "WiFi connected", "LAN router reachable", or "some server on the internet reachable"? There are many ways to have or not to have network available. – Nikolai Ruhe Jun 26 '15 at 07:24
  • try the reachabilty framework from apple – thorb65 Jun 26 '15 at 07:30
  • Reachability framework helped . THanks – andy Jun 26 '15 at 08:12

0 Answers0