We have answer of your question!

100% solved queries, no empty question

Question: Retreiving the PC Name of a Client? (Windows Auth)


0

Advertisement


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

I just wonder:
Can I somehow retrieve the name of the PC the Client is using?
I would have access to Active Directory if that helps.
Thing is, people use multiple PCs, so I cannot use any manual/static mapping.

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)

Question author Michael-stum | Source

Answer


1


Advertisement


No, that just returns the IP :-(

But I just found it:

System.Net.Dns.GetHostEntry(Page.Request.UserHostAddress).HostName

That only works if there is actually a DNS Server to resolve the name, which is the case for my network.

Answer author Michael-stum

Advertisement


Tickanswer.com is providing the only single recommended solution of the question Retreiving the PC Name of a Client? (Windows Auth) under the categories i.e asp.net , sharepoint , authentication , . Our team of experts filter the best solution for you.

You may also add your answer!