Click here to Skip to main content
15,886,833 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a problem in getting MAC Address (Physical Address) instead of IP Address of Client machine with web application to validate user login account.

Please tell me any solution as soon as possible ?
Posted
Updated 30-Nov-13 18:32pm
v2
Comments
Sergey Alexandrovich Kryukov 1-Dec-13 0:31am    
Why?!
—SA
Gaurav Gupta A Tech Guy 1-Dec-13 3:10am    
So tell me a way to identify a user machine over the web application ?

Or is there any way to get MAC address whether it is gud or not ? Please tell me the way to get it through ActiveX control if no other solution is there ?
Sergey Alexandrovich Kryukov 1-Dec-13 12:09pm    
Identification of a machine is a serious limitation of user's natural right, it means: register on just one machine, you won't be able to work on any other one. I would review this decision. And no, ASP.NET application (a Web application, whatever it is) has not access to a client machine. For a good reason.
—SA
Gaurav Gupta A Tech Guy 2-Dec-13 5:51am    
This is becoz i have a client to which i need to provide high level security. and i must implement MAC level security.Plz assist me ?
Sergey Alexandrovich Kryukov 2-Dec-13 9:51am    
I say, a Web application does not have access to the local machine. This is not suitable method to improve security. By the way, illusion of security can be worse than no security at all. You just should use very accurate and secure authentication, which needs considerable knowledge and understanding.
—SA

1 solution

Basically, you can't. There is a way, but it requires circumstances which do not occur in 99.999% of circumstances: IE and ActiveX enabled on a PC.
You can't even get the IP address of the client machine, much less the MAC address (which is never used beyond the router) - what you get is the IP address of the router (or similar) that is connecting the internal network to the internet. If you have five clients within the same company or household, you will read them all as the same IP address.

Even if you could use an ActiveX control to read the MAC address there are still two big problems:
1) MAC addresses are extremely simple to "spoof".
2) MAC addresses are not unique across the internet - just unique within a network segment.

Don't you think that if it was that simple to absolutely identify a machine over the internet, banks and credit card companies would have insisted you register the MAC with them before you can access your account?
 
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