Hi im looking for the MAC address of the Lan connection, I have seen 2 libs and some java that give you the MAC address of WIFI, but nothing regarding LAN! from experience the LAN address is different to the WIFI address. I was hoping I could modify the below to find either the LAN or WIFI address?
Thanks
Aidy
B4X:
Sub Get_Mac As String
Dim R As Reflector
R.Target = R.GetContext
R.Target = R.RunMethod2("getSystemService", "wifi", "java.lang.String")
R.Target = R.RunMethod("getConnectionInfo")
Log(R.RunMethod("getMacAddress"))
Return R.RunMethod("getMacAddress")
End Sub
Thanks
Aidy