<p>I have an ASP.net Application that runs on the internal network (well, actually it's running on Sharepoint 2007).  </p>

<p>I just wonder:</p>

<p>Can I somehow retrieve the name of the PC the Client is using? I would have access to Active Directory if that helps. The thing is, people use multiple PCs. So, I cannot use any manual/static mapping.</p>

<p>If possible, I do not want to use any client-side (read: JavaScript) code, but if it cannot be done server-side, JavaScript would be OK as well. ActiveX is absolutely out of question.</p>

[{'answer_id': 17691, 'author': 'OJ.', 'author_id': 611, 'author_profile': 'https://Stackoverflow.com/users/611', 'pm_score': 2, 'selected': False, 'text': '<p>Does <a href="http://msdn.microsoft.com/en-us/library/system.web.httprequest.userhostname.aspx" rel="nofollow noreferrer">System.Web.HttpRequest.UserHostname</a> provide what you\'re looking for?</p>\n'}, {'answer_id': 17698, 'author': 'Michael Stum', 'author_id': 91, 'author_profile': 'https://Stackoverflow.com/users/91', 'pm_score': 3, 'selected': True, 'text': '<p><a href="https://learn.microsoft.com/en-us/dotnet/api/system.web.httprequest.userhostname?redirectedfrom=MSDN&amp;view=netframework-4.8#System_Web_HttpRequest_UserHostName" rel="nofollow noreferrer">System.Web.HttpRequest.UserHostname</a> as suggested in <a href="https://stackoverflow.com/a/17691/1011722">this answer</a> just returns the IP :-(</p>\n\n<p>But I just found this:</p>\n\n<pre><code>System.Net.Dns.GetHostEntry(Page.Request.UserHostAddress).HostName\n</code></pre>\n\n<p>That only works if there is actually a DNS Server to resolve the name, which is the case for my network.</p>\n'}]
['https://Stackoverflow.com/questions/17664', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/91/']