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

Michael Levy picture Michael Levy · May 19, 2011 · Viewed 37k times · Source

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?

Answer

AhmetB - Google picture AhmetB - Google · May 19, 2011

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

BSSID explained here.