We are using :
System.Net.Dns.Resolve(Request.ServerVariables("remote_addr")).HostName
to get the client computer name in ASP .NET.
It works fine when run from visual studio, and even when run from IIS7, but IIS6 (or maybe some other factor) is only returning the client computer's domain name
Are there any settings or anything that would cause this function to return the domain name instead of the intended machine name?
Dns.Resolve is now obsolete and so thatmight be causing the issue. Try using Dns.GetHostEntry instead and see if that fixes the issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With