iphone - how do i check whether im connected to a wifi network
<p>i read,seen the Reachablility example in Apple's website but still not quite sure about determining whether the iphone is connected to a wifi network/ or a pc(ipaddress). All i understand about that example is that you give it a address, and it checks how it is accessible either via wifi,WWAN or not reachable at all. </p>

<p>Could anyone shed some light on this? Im new to iPhone programming :\ </p>

<p>What i want is to check whether the iPhone is connected to a particular ipaddress via wifi at that moment of time, like clicking a button and a UIAlertView shows "Not connected via wifi to "INSERT IPADDRESS HERE" "when its not connected. Am i making sense? lol. </p>
