Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 17408 on
Developer Community or GitHub if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
From case 58501:
I’ve discovered an issue with Reachability, not sure if it’s a bug or not. If the iPad has a cellular modem, Airplane mode is ON and Cell Data shows ‘Airplane Mode', Reachability (See attached) returns true, as if it can reach the Internet. But when I try to load a site I get back a DNS error, can’t resolve the site. If I turn off cellular data and have Airplane mode on I get false from Reachability (as one would expect). Does this sound like a bug or is the Reachability class missing something?
Here is a sample of how I call Reachability:
//Load server side help content
var url = new NSUrl("http://www.cognitopia.com/pphelp.php?screen=" + appDelegate.store.currentScreen);
Log.WriteLog("Help " + url.AbsoluteString);
var urlRequest = new NSUrlRequest(url);
Note that in the sample project I provided, since I didn't know what was returned by appDelegate.store.currentScreen, I just used the base URL, i.e. nothing after the ?, but that shouldn't matter for DNS lookups I wouldn't think.
Additional note: Issue did not occur for me with an iPhone with a cellular data plan.
I have checked this issue with attached sample on iPad. I made setting as mentioned in comment 2, I debug application and noticed that "Reachability.IsHostReachable("www.cognitopia.com")" return false and
Xamarin Studio 4.2.2 (build 2)
X.iOS : 220.127.116.11
Below if my observation for this issue:
1. For setting iPad with Airplane mode ON and Cellular data ON: function "Reachability.IsHostReachable("www.cognitopia.com")" return value true
2. For setting iPad with Airplane mode ON and Cellular data OFF: function "Reachability.IsHostReachable("www.cognitopia.com")" return value false
I see the same conditions as Sadik Ali on iPhone 5S using iOS 7.1
This didn't used to be a problem. Perhaps a bug was introduced with 7.1?