want to get mac address of remote PC

后端 未结 4 2113
野的像风
野的像风 2021-01-07 04:07

I have my web page in python, i am able to get the ip address of the user, who will be accessing our web page, we want to get the mac address of the user\'s PC, is it possib

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-07 04:23

    I have a small, signed Java Applet, which requires Java 6 runtime on the remote computer to do this. It uses the getHardwareAddress() method on NetworkInterface to obtain the MAC address. I use javascript to access a method in the applet that calls this and returns a JSON object containing the address. This gets stuffed into a hidden field in the form and posted with the rest of the fields.

提交回复
热议问题