如何在Windows应用程序上设置mac地址 [英] how to set a mac address on the windows application
本文介绍了如何在Windows应用程序上设置mac地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在运行Windows应用程序后,它是Windows应用程序主页面中的默认mac地址设置但是mac地址不匹配Windows应用程序无法运行并显示消息mac地址无效。
it is a set by default mac address in main page on windows application after run able windows application but mac address is not a match windows application is not run able and show the message mac address not a valid.
推荐答案
我认为您的意思是要保护您的应用程序仅在具有特定MAC地址的计算机上运行?如果是,请参阅此处:检索IP和MAC地址局域网 [ ^ ] - 包括获取当前PC MAC地址的代码。
但是,我建议这是一个糟糕的主意 - 它非常非常容易欺骗MAC地址作为一个简单的 Google [ ^ ]。此外,MAC地址不是全球唯一的数字 - 它们只需要在LAN网段内是唯一的,而不是互联网上唯一的。
I assume that you mean you want to secure your application to run only on a computer with a specific MAC address? If so, then see here: Retrieving IP and MAC addresses for a LAN[^] - includes the code to fetch the current PC MAC address.
However, I would suggest that this is a poor idea - it is very, very easy to "spoof" MAC addresses as a simple Google[^] will show. Moreover, MAC addresses are not globally unique numbers - they only have to be unique within a LAN segment, not unique across the internet.
这篇关于如何在Windows应用程序上设置mac地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文