Kodi Community Forum

Full Version: What is the best way to get the device MAC address in a script?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What is the best way to get the device MAC address in a script?

I'm using the following but it doesn't always return the MAC address.
Sometimes it is empty and sometimes it returns "00:00:00:00:00:00".
I've noticed this mostly on Android.

I just need a consistent/reliable way to get this info. Any help is appreciated.

python:
xbmc.getInfoLabel('Network.MacAddress')