1

I want iOS equivalent code of the following android version.

WifiManager manager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
WifiInfo info = manager.getConnectionInfo();
String address = info.getMacAddress();

I am able to get the ip from the following:

WifiManager * manager = [[WifiManager alloc ] init];
NSMutableDictionary *connectedWiFiInfo = [manager getWifiInformation];

But, this ip, ssid, etc can be changed after I connect the WiFi device to MAC. Therefore, I am looking for MAC address.

Irfan
  • 5,070
  • 1
  • 28
  • 32
SanjayPathak
  • 121
  • 1
  • 10

0 Answers0