How to check a local wifi connection
Posted
by Thomas Joos
on Stack Overflow
See other posts from Stack Overflow
or by Thomas Joos
Published on 2010-04-23T09:48:17Z
Indexed on
2010/04/23
9:53 UTC
Read the original article
Hit count: 383
hi all,
I'm writing an app which connects to a static ip adress in a local network. How can I check if I have a local network connection? I want to connect to http://192.168.2.5 and i tried using the Rechability class but it returns FALSE, while the device is definately connected ( when i don't do the check, the app works fine so there is a connection ):
Reachability *r = [Reachability reachabilityWithHostName:@"http://192.168.2.5"]; NetworkStatus internetStatus = [r currentReachabilityStatus];
How should work this out?
Thomas
© Stack Overflow or respective owner