How to get Client Machine's Mac Address in a Web application

前端 未结 3 705
后悔当初
后悔当初 2020-11-29 08:57

I have to get Mac Address of client\'s PC where my website is running. So how to get Mac Address of client\'s machine (not of the Server\'s Mac Address where website is host

3条回答
  •  情深已故
    2020-11-29 09:18

    Sounds like this is an internal network.

    Another method is that by using mac address the dhcp server can assign particular ip ranges. you can then check for that ip range in your server code. There is not a way to get mac address in javascript, but you can get the ip easily. Also perhaps your dhcp server can publish mac address ip address tables for your web server to use via an api or something - not sure on that but may be worth looking into.

提交回复
热议问题