title: iOS Reachability fails to catch the case where connected to WiFi but not logged in
body: <p>Today, I had my Beta-version app out in public.  I was at a hotel and had not yet obtained the access code for the WiFi.  When testing the reachability, I noticed that it didn't fail as it should have.  It was <em>connected</em> to WiFi but nothing was actually reachable because I wasn't logged in.  This use-case <em>should</em> be covered by <strong>reachabilityWithHostname</strong>.   Here's my code:</p>
  
  <p>In AppDelegate.h:</p>
  
  <pre><code>@interface AppDelegate : UIResponder &lt;UIApplicationDelegate&gt; {
  
      Reachability* hostReach;
      Reachability* internetReach;
      Reachability* wifiReach;
  }
  </code></pre>
  
  <p>In AppDelegate.m:</p>
  
  <pre><code>    internetReach = [Reachability reachabilityForInternetConnection];
      [internetReach startNotifier];
  
      wifiReach = [Reachability reachabilityForLocalWiFi];
      [wifiReach startNotifier];
  
      hostReach = [Reachability reachabilityWithHostname: @"http://www.google.com"];
      [hostReach connectionRequired];
      [hostReach startNotifier];
  </code></pre>
  
  <p>In module(s) that require connectivity:</p>
  
  <pre><code>- (BOOL) isInternetReachable
  {
      Reachability *currentReach = [Reachability reachabilityForInternetConnection];
      NetworkStatus netStatus = [currentReach currentReachabilityStatus];
  
  
      return (netStatus == ReachableViaWiFi || netStatus == ReachableViaWWAN);
  }
  </code></pre>
  
  <p>Does anyone know how to cover this circumstance?</p>