By using
Request.UserHostName also returns IP Address instead of returning Name while
Request.UserHostAddress working fine for IP Address.
Please guide me how can I get Client machine in asp.net application using C# or any other mechanism used for this purpose ?
Early response will be regarded.
Joginder BangerPosted Feb 9, 2017, 12:42 AM
Muhammad MohsanPosted Feb 9, 2017, 2:25 AM
Joginder BangerPosted Feb 9, 2017, 12:43 AM
As far as I remember, in order to get:
Request.ServerVariables["REMOTE_ADDR"]Request.ServerVariables["REMOTE_HOST"]Request.ServerVariables["REMOTE_USER"]you have to enable
Reverse DNS Lookupfor you IIS.p.s. atm I'm not able to test it myself, so I'm not quite sure if this will solve ur problem
Thanks stackoverflow.com team for your efforts.Nitin SontakkePosted Feb 9, 2017, 12:42 AM
Rajeesh MenothPosted Feb 9, 2017, 12:39 AM