I want to Ping or Lookup a particular IP address of server if it is connected or available at that particular time or not in my iPhone application.
I searched a lot over internet but could not find any relevant result for same.
Please help me as I am new to this field.
Thanks in advance.
Type ping. Hit the space bar. Then type in the IP address you want to check. Hit Enter.
You can also use Pingify to test your iPhone's Wi-Fi or cellular signal strength, starting a ping and walking around an area. You might notice that some areas of your home, workplace, or anywhere else have a worse signal.
Apple provides reachability classes you can use the class and
You can download reachability.h and Reachability.m
And use this as
Reachability* reachability = [[Reachability reachabilityWithHostName: @"www.apple.com"] retain]; NetworkStatus netStatus = [reachability currentReachabilityStatus];
netStatus gives the reachabilty of the server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With