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
You need Apple's Reachability Sample Application.
If you want to ping the server, try this:
SimplePing
It allows for you to ping by either hostname or IP.
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.