suresh

suresh

  • NA
  • 293
  • 0

How to Track Visitors Computer Name

Nov 6 2012 11:41 AM
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,




Answers (1)