title: How to find nearby wifi networks and their IP addresses using Objective-C
body: <p>I have to find nearby wireless networks along with their IP and MAC addresses. I am using the following piece of code to scan the networks, but I didn't find any way to get the IP addresses of the available networks. </p>
  
  <pre><code>CWInterface* wifi = [[CWWiFiClient sharedWiFiClient] interface];
  NSError *err = nil;
  NSSet *networksSet = [wifi scanForNetworksWithName:nil error:&amp;err];
  NSArray *allNetworks = [networksSet allObjects];
  for (CWNetwork *network in allNetworks) {
      NSLog(@"SSID : %@",network.ssid);
      NSLog(@"BSSID : %@",network.bssid);
  }
  </code></pre>
  
  <p>This can be done using the CoreWLAN.framework provided by Apple, but how can I get the details of other wireless networks?</p>