Sometimes we need to check synchronously, if there is an internet connection. For instance, when an app totally depends on internet connection. This is the simplest way to check internet connection on iOS app synchronously without using Reachability class:
NSURL *url = [NSURL URLWithString:@"http://www.google.com"];
NSData *data = [NSData dataWithContentsOfURL:url];
if (data != nil)
NSLog(@"Device is connected to the internet");
NSLog(@"Device is not connected to the internet");
Taken from here.
Instead of Google it is better to use another lightweight website. But I use google.com, since it is always online and reliable and not very heavy page.