Deepika Chaudhary

Deepika Chaudhary

  • 1.2k
  • 133
  • 96.7k

how to get user machine/computer name in website

Jul 14 2016 1:17 AM

Hi All,

 I need to get user machine name in my application to store in the database.

Can anyone help?
 
If this is possible.?
 
The following things I already tried.
 

Request.ServerVariables["HTTP_X_FORWARDED_FOR"];

Request.ServerVariables["REMOTE_ADDR"];

Request.UserHostAddress;

Request.UserHostName;

System.Net.Dns.GetHostEntry(Request.ServerVariables["remote_addr"]).HostName.Split(new Char[] { '.' });

 

Answers (4)