FE80:0000:0000:0000
. The EUI-64 is used to generate the node part.FF:FE
in the middle. So, the MAC 01:23:45:67:89:AB
will become 01:23:45:FF:FE:67:89:AB
. 01
and is represented in binary as 00000001
. After flipping the 7th bit, the byte becomes 00000011
and in hex 03
.01:23:45:67:89:AB
is 03:23:45:FF:FE:67:89:AB
.FE80:0000:0000:0000:0323:45FF:FE67:89AB
or in short version FE80::323:45FF:FE67:89AB
.In iOS 7 and later, if you ask for the MAC address of an iOS device, the system returns the value02:00:00:00:00:00
. If you need to identify the device, use theidentifierForVendor
property ofUIDevice
instead. (Apps that need an identifier for their own advertising purposes should consider using theadvertisingIdentifier
property ofASIdentifierManager
instead.) - iOS 7 Documentation Guide
To provide users with greater data protection, starting in this release, Android removes programmatic access to the device’s local hardware identifier for apps using the Wi-Fi and Bluetooth APIs. TheWifiInfo.getMacAddress()
and theBluetoothAdapter.getAddress()
methods now return a constant value of02:00:00:00:00:00
. - Android 6.0 Changes
en0
, the name of the WiFi interface. The link-local address looks like a random address.rawValue
of the address returns an array with length 16 that represents the address in bytes. So, we flip the second bit of the first byte (position 8 in our array) with a XOR ^
operation (XOR returns 1 only if the two values are different). Format sd card windows 10. We also completely ignore the FF:FE
sequence found at index 11 and 12.ipsec0
interface, which means you can still get your MAC address even if you are offline.