How to obtain the unique identification number of the computer through js on the client side, such as the mac address

how to obtain the unique identification number of a computer through js on the client side, such as mac address

Jul.20,2021

JS alone cannot do this, the browser will not allow your code to access the host environment directly, and the current browser does not provide this API.

if this "client" is developed by yourself, then there is a solution, just provide an API injection into the JS context.


getting the Mac address of a device through js alone is not allowed, and even ordinary software on iOS cannot obtain the Mac address. But if it's just to identify the uniqueness of the device, you can use another option: browser fingerprint .

Fingerprintjs2 test
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b382e7-2c0fd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b382e7-2c0fd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?