Linked Questions
23 questions linked to/from Programmatically getting the MAC of an Android device
-5 votes
1 answer
4k views
How do I find the MAC Address of my Android phone or tablet? [duplicate]
how to find MAC address(physical address) of android phone .any help will be appreciated..
94 votes
12 answers
191k views
How to get MAC address of your machine using a C program?
I am working on Ubuntu. How can I get MAC address of my machine or an interface say eth0 using C program.
64 votes
8 answers
129k views
How to find MAC address of an Android device programmatically
How do i get Mac Id of android device programmatically. I have done with IMIE Code and I know how to check Mac id on device manually but have no idea how to find out programmatically.
42 votes
6 answers
63k views
How to obtain MAC address of WiFi network interface?
It seems the java.net.NetworkInterface implementation of android does not have a byte[] getHardwareAddress() method http://developer.android.com/reference/java/net/NetworkInterface.html I've found ...
18 votes
9 answers
28k views
Get android Ethernet MAC Address (not wifi interface)
I'm using Android with Api level 8 and I want to get the Address of my Ethernet interface (eth0). On API level 8, the NetworkInterface class don't have the function getHardwareAddress(). The ...
23 votes
5 answers
58k views
Get MAC Address of android device without Wifi
How do I get the MAC-Address of the network interface of an android device which doesn't have a Wifi-Interface (e.g. the android emulator)? WifiInfo obtained via the WifiManager returns null. EDIT ...
16 votes
2 answers
28k views
How to get Wi-Fi Mac address in Android Marshmallow
I am using WiFi MAC address as Unique id, from Marshmallow onwards returning fake MAC address(for security reason). With this my Android application behaves differently. How to get the actual MAC ...
15 votes
3 answers
21k views
How to get the missing Wifi MAC Address in Android Marshmallow and later?
Android developers looking to get the Wifi MAC Address on Android M may have experienced an issue where the standard Android OS API to get the MAC Address returns a fake MAC Address (02:00:00:00:00:00)...
4 votes
1 answer
3k views
Can one programmatically obtain the MAC address of a device running Android 6.0+?
Can one programmatically obtain the MAC address of a device running Android 6.0+? According to this, To provide users with greater data protection, starting in this release, Android removes ...
2 votes
1 answer
10k views
How to get Mac address in Kotlin
I need to obtain the MAC address of my android device using Kotlin. I've searched online, but I haven't found anything useful. I am using WiFi MAC address as Unique id, How to get the actual MAC ...
1 vote
1 answer
8k views
How to determine wifi hardware address in Termux
I need to determine my device's MAC (hardware) address, ie that for the wifi. I'm using Termux on an Android device, although maybe an answer will apply more generally. I'm using python, but any bash ...
4 votes
1 answer
5k views
getMacAddress() returns null in Android 11? How to get mac address for Android 11?
{ try { List<NetworkInterface> all = Collections.list(NetworkInterface.getNetworkInterfaces()); for (NetworkInterface nif : all) { if (!nif.getName()....
2 votes
2 answers
766 views
What is a good way to identify mobile users without login?
I'm working on a mobile game in Unity and I want to be able to identify my user without them logging in (so when they send data to the server I will know it's them). In this specific case, the ...
2 votes
2 answers
3k views
how to get Mac Address for Android studio app
i am working on Android with Java (Android studio) to create Android app so i want to get Mac Address. so my Question is how i can find Mac address? Mac address will be Unique for each User. User will ...
2 votes
1 answer
2k views
Get mac address and ip in Nativescript
We are implementing a server for app distribution and we need restrict the access to the apps by: mac address ip At the moment I have not found any module that can obtain this data from the device in ...