- Logging Mac Address : You can not log mac address of a visitor if they are not on the same network as you are (your site / portal ). For same network users you can use something like this
- Hostname and IP Address : For you can use the following on the request object to log user hostname name and IP address :
string ip = Request.UserHostAddress;
string hostname = Request.UserHostName;
Log actual IP incase of VPN : Ok , this is not easy nor possible as of now. WebRTC was able to do something similar but most browsers don't allow it anymore.