See the Wikipedia page IPv6 Address, particularly the note about 'local addresses' fe80::/64 and the section about 'Modified EUI-64'. Getting the WiFi IPv6 address only requires. You can get the MAC address from the IPv6 local address. Hopefully this code will still work in later Android versions.ĮDIT: Also in Android 6 release this works Somehow I heared that reading the File from '/sys/class/net/' + networkInterfaceName + '/address' will not work since Android N will be released and also there can be differences between the different manufacturers like Samsung etc.
You can get the WiFi MACAddress with (Android M Preview 2): public static String getWifiMacAddress() // for now eat exceptions In Android M the MACAddress will be 'unreadable' for WiFi and Bluetooth.