Hi ,I want to fetch visitors computername and username When visitors click a button .
I try this code and not fetch visitors value ..
HttpContext.Current.Request.ServerVariables["REMOTE_USER"];
HttpContext.Current.Request.ServerVariables["REMOTE_HOST"];
Demir AcarPosted Sep 24, 2014, 8:51 AM
The requested protocol has not been configured into the system, or no implementation for it exists
Deepak Kumar ChoudharyPosted Sep 24, 2014, 5:49 AM
veriable
code given below
I amd also attaching the demo website this will helpful for you.
Thanks!
Demir AcarPosted Sep 23, 2014, 6:15 AM
Demir AcarPosted Sep 23, 2014, 6:13 AM
Deepak Kumar ChoudharyPosted Sep 23, 2014, 5:09 AM
string IPAddress = Request.ServerVariables["REMOTE_HOST"];
string HostName=System.Net.Dns.GetHostByAddress(addr).HostName ;
Response.Write("Host Name="+HotName+ "adder=" +IPAddress);
I Hop this will help you.
Thanks!
Arunava BhattacharjeePosted Sep 22, 2014, 11:12 PM
If the authentication configured correctly, you can get the client user from IIdentity.Name.
In the context of a Page, you can use Request.UserHostAddress, Request.UserHostName and User.Identity.Name.
Mark the answer as accepted if you get what you desired!