To check network connection in my iPhone app, I’m using this code:
_hostReachable = [[Reachability reachabilityWithHostName: @"https://abc1.abc.com"] retain];
[_hostReachable startNotifier];
And check status
NetworkStatus status = [_hostReachable currentReachabilityStatus];
I did test with “https://mail.google.com” or “http://translate.google.com” and the status always return NotReachable with that subdomain names, but with “http://google.com” it’s ok.
Dose Reachability not work with sub domain name ? Please help me, thanks !
Just tested it with my app – host reachable with subdomains seems to be working.
I noticed that you are including the protocols
http://andhttps://. Perhaps that is the problem. Try just usingabc1.abc.com.