title: How to check a local wifi connection
body: <p>I'm writing an app which connects to a static ip address in a local network. How can I check if I have a local network connection? I want to connect to <a href="http://192.168.2.5" rel="nofollow noreferrer">http://192.168.2.5</a> and i tried using the <code>Rechability</code> class but it returns <code>FALSE</code>, while the device is definitely connected ( when i don't do the check, the app works fine so there is a connection ):</p>
  
  <pre><code>Reachability *r = [Reachability reachabilityWithHostName:@"http://192.168.2.5"];
  NetworkStatus internetStatus = [r currentReachabilityStatus];
  </code></pre>
  
  <p>How should work this out? </p>
  
  <p>Thomas</p>