Well, in my app I use some code to discover all reachable devices in Local Network. Now I want to get device's mac address using local ip address
I want something like this: getMacAddress("192.168.1.23")
public static String getMacAddress(String ip)
{
String macAddress = ...
return macAddress;
}
I have found this for getting my own mac address, what about the rest of the ips in the LAN?
WifiManager manager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
WifiInfo info = manager.getConnectionInfo();
String address = info.getMacAddress();