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.
CWInterface* wifi = [[CWWiFiClient sharedWiFiClient] interface];
NSError *err = nil;
NSSet *networksSet = [wifi scanForNetworksWithName:nil error:&err];
NSArray *allNetworks = [networksSet allObjects];
for (CWNetwork *network in allNetworks) {
NSLog(@"SSID : %@",network.ssid);
NSLog(@"BSSID : %@",network.bssid);
}
This can be done using the CoreWLAN.framework provided by Apple, but how can I get the details of other wireless networks?