Link to home
Start Free TrialLog in
Avatar of adypips
adypipsFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How to get hold of the client computername with Javascript and how to integrate this into ASP.NET

Hi I am looking for some javascript code that will pick up the clients computer name? is this possible as I need to find the computername of the person logging a call with our e-form. I not a javascript whizz so would really appreciate some completed code snippets and advise on intergrating this into asp.net. Many thanks Adypips.
Avatar of raterus
raterus
Flag of United States of America image

Unless you are on an intranet, where you have DNS control of the computers of your clients, you are out of luck.  Javascript security prevents you from obtaining this name.
Avatar of adypips

ASKER

This is all for internal use so, on intranet. Is there away around the security if for internal use? I can get the IP Address. Would I have to pass the IP address to look up the name using DNS?
Yes, you just need to run a reverse DNS lookup using the IP Address.  This of course is dependent on your local DNS server being properly maintained with reverse entries.

You should find plenty of examples if you search for "Reverse DNS .net", but let me know if you can't figure it out.
Avatar of adypips

ASKER

Thanks raterus your help is appriecated. Thanks again Adrian
ASKER CERTIFIED SOLUTION
Avatar of adypips
adypips
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial