I am checking reachability to a particular ip address. It always returns unknown. below is what i am doing
AFNetworkReachabilityManager *addressCheck=[AFNetworkReachabilityManager managerForAddress:@"192.168.1.45"];
[addressCheck startMonitoring];
NSLog(@"%hhd",addressCheck.reachable);
NSString *str=[[NSString alloc]initWithString:[addressCheck localizedNetworkReachabilityStatusString]];
NSLog(@"%@",str);
NSLog(@"%@",addressCheck.localizedNetworkReachabilityStatusString);
Is this the right way to use. Or what wlse i can do it function properly. Any help is highly appreciated. Thanks