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 *connected* to WiFi but nothing was actually reachable because I wasn't logged in. This use-case *should* be covered by **reachabilityWithHostname**. Here's my code:

In AppDelegate.h:

```
@interface AppDelegate : UIResponder <UIApplicationDelegate> {

    Reachability* hostReach;
    Reachability* internetReach;
    Reachability* wifiReach;
}

```

In AppDelegate.m:

```
    internetReach = [Reachability reachabilityForInternetConnection];
    [internetReach startNotifier];

    wifiReach = [Reachability reachabilityForLocalWiFi];
    [wifiReach startNotifier];

    hostReach = [Reachability reachabilityWithHostname: @"http://www.google.com"];
    [hostReach connectionRequired];
    [hostReach startNotifier];

```

In module(s) that require connectivity:

```
- (BOOL) isInternetReachable
{
    Reachability *currentReach = [Reachability reachabilityForInternetConnection];
    NetworkStatus netStatus = [currentReach currentReachabilityStatus];

    return (netStatus == ReachableViaWiFi || netStatus == ReachableViaWWAN);
}

```

Does anyone know how to cover this circumstance?