Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to get client mac address which is uniquely identify user. i get ip address but not able to get client machine mac address.
how can i get.
please suggest me.

What I have tried:

C#
foreach (NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces())
{
    if (nic.OperationalStatus == OperationalStatus.Up)
    {
        macAddresses += nic.GetPhysicalAddress().ToString();
       // allvalues += nic.GetIPv4Statistics().ToString();

        break;
    }
}


but it return server mac address
Posted
Updated 19-Dec-16 19:47pm

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900