WinControls and System.Management
-
Hello people, I have an Web Application and I need to get the Mac Address from client computer for security reasons. So I tried to do this by using Windows Control, but Windows Control isn't working when I call for System.Management objects like when I try to get the Mac Address. Explorer shows an alert about SecurityException. Anyone knows how to do this? another solution? tks Wender Oliveira .NET Developer
-
Hello people, I have an Web Application and I need to get the Mac Address from client computer for security reasons. So I tried to do this by using Windows Control, but Windows Control isn't working when I call for System.Management objects like when I try to get the Mac Address. Explorer shows an alert about SecurityException. Anyone knows how to do this? another solution? tks Wender Oliveira .NET Developer
You're trying to get the MAC address of a client on the server side of your ASP.NET application. The short answer is, you can't. Not because of the security restrictions either. Simply because when you try and do an ARP resolve on the IP address, you'll get the MAC address of the NIC on the side of the router that the server is on, not the client machine. There is no method of getting the MAC address of a NIC unless that NIC happens to be on the same physical subnet as the server. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome