MAC address of remote machine

Dec 11 2005 1:58 PM

Hello, I am developing a ASP .NET web form, what I want is to be able to retreive the MAC address of the user who is accessing the page..

 

I tried this:

 

System.Management.SelectQuery sq = new

System.Management.SelectQuery("Win32_NetworkAdapterConfiguration",

"IPEnabled='TRUE'");

System.Management.ManagementObjectSearcher searcher = new

System.Management.ManagementObjectSearcher(sq);

foreach (System.Management.ManagementObject mos in searcher.Get())

{

Response.Write(mos.GetPropertyValue("MACAddress").ToString().Replace(":",""));

}

 

But for all users it game the same MAC which is probably giving the MAC address of my network card.. What I want is the MAC of the user

 

Thanks


Answers (1)