I have a Web API developed in asp.net. Now I want to log the MAC Address of any incoming request to API. is this possible in c# and how?
Any help would be very much appreciated?
Thank you
I have a Web API developed in asp.net. Now I want to log the MAC Address of any incoming request to API. is this possible in c# and how?
Any help would be very much appreciated?
Thank you
There is no solution with HTTP protocol. Using ASP.NET you can't get MAC address or other hardware identifiers. You can get IP but many machines will share the same IP if they are behind NAT. The same issue with combination of IP+browser+version.
Depends on your requirements, you may
Some other ideas: Designing a Secure REST (Web) API without OAuth