You can never get the MAC address of a user connected to your website, when a socket connection occurs between the destination (your website's server) and a source (client's computer) you can only get the source IP address, for the MAC address it's never sent over the socket connection.
(Client <--> Server), in order to get the IP address of a user.
You can use this code to get the mac address of the client machine in asp.net c#,
Default.aspx
Default.aspx.cs
When run the application and click on the button, You can see the Mac address like below.
Post a Comment