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
Menu