Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Hi guys, I badly need your help on how to get client's PC name on JS. Thanks.

What I have tried:

I have tried on C# but i get the server side.
Posted
Updated 13-Sep-18 1:13am
v2

You can't get that information at all for security reasons, in Javascript or C# - there is no access to that type of information at all.
 
Share this answer
 
You can find solution for Firefox (check their docs) and IE (ActiveX controls), but both require user acceptance. As is said before, it would be terrible security risk to have javascript (or any front-end language) access your computer.

Imagine having codeproject rumage through your disk to see if you have good articles unposted. Government checking for dissidents. Hackers just waiting to scramble your files...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900