Search code examples
androidwifiandroid-wifi

Can I find the MAC address of my Access point in Android?


Can my Android app find the MAC address of the Wifi access point it is connected to?

The docs for android.net.wifi.WifiInfo getMacAddress() don't provide any details.

See http://developer.android.com/reference/android/net/wifi/WifiInfo.html#getMacAddress().

I'm assuming this is the Mac address of my phone. Can I find the Mac address of the access point?


Solution

  • getBSSID() of WifiInfo class will return MAC address of remote access point.

    BSSID explained here.