Hi,
I want to track Client System(Computer Name).Who ever accessing my site.
Ex:Some body open my site say www.test.com.
I want to get computer name who is accessing my system(www.test.com)
I used below conditions but it's showing the Server Computer Name.
String[] computer_name = System.Net.Dns.GetHostEntry(Request.ServerVariables["remote_addr"]).HostName.Split(new Char[] { '.' });
String ecn = System.Environment.MachineName;
string comp_name = System.Environment.GetEnvironmentVariable("COMPUTERNAME");
Please help me.
Thanks,
Loading
Sandeep Singh ShekhawatPosted Nov 6, 2012, 1:02 PM
string computer_name = System.Net.Dns.GetHostEntry
(Request.ServerVariables["remote_addr"]).HostName;
Response.Write(computer_name);
OR
string client_computer_name = System.Net.Dns.GetHostName();
Response.Write(client_computer_name);