web server to fetch client's machine mac address

前端 未结 3 1771
猫巷女王i
猫巷女王i 2021-01-16 06:40

I\'m trying to build some complicated stuff for an C# winform application being build online and trying to gather some information here and there.I\'ve looked on the web tha

3条回答
  •  太阳男子
    2021-01-16 07:21

    You can't get any of that information from a web server, and you should not try. Consider that machines may have multiple IP addresses and multiple MAC addresses, and may be behind a proxy server or Network Address Translation device, or worse.

    IP addresses belong to the network layer, and should generally not be used by the Application layer. If nothing else, it's unlikely that the Network Administrators will consult the Developers when making changes to the network that will invalidate your assumptions.

提交回复
热议问题