Take a look at the SCNetworkReachabilitylink. This is a C API, so it is not as easy to use as a single method call, but it does a great job of notifying your application when a particular address becomes available or inaccessible over the network.
SCNetworkReachabilityCreateWithAddress SCNetworkReachabilityCreateWithName, SCNetworkReachabilityScheduleWithRunLoop. , . , .
Apple , , ( iOS, Mac OS X)