This class help you with access checking to server by host and port.
The recommended approach for installing ServerReachability is via the CocoaPods package manager, as it provides flexible dependency management and dead simple installation. For best results, it is recommended that you install via CocoaPods **>= ** usin0.19.1g Git >= 1.8.0 installed via Homebrew.
Install CocoaPods if not already available:
$ [sudo] gem install cocoapods
$ pod setupChange to the directory of your Xcode project, and Create and Edit your Podfile and add RestKit:
$ cd /path/to/MyProject
$ touch Podfile
$ edit Podfile
platform :ios, '5.0'
# Or platform :osx, '10.7'
pod 'ServerReachability', :git => 'https://github.com/ogubariev/ServerReachability.git', :tag => '0.0.1'Install into your project:
$ pod installOpen your project in Xcode from the .xcworkspace file (not the usual project file)
$ open MyProject.xcworkspaceServerReachability is licensed under the terms of the [MIT License]. Please see the LICENSE file for full details.