0

How can I read the client's machine name from the browser? Is it possible using JavaScript or angularJS?

Ramzy Abourafeh
  • 1,195
  • 7
  • 17
  • 35
  • You can't read the client's machine name – micnic May 27 '14 at 08:06
  • 1
    I think its not possible because browser is sandbox environment which means you have a very restrictive access to the underlying machine. – vivek May 27 '14 at 08:22
  • I donot know why is this duplicate. Here the person is explicitly asking for angular JS not ASP.NET. I have same question in TypeScript. – Ziggler Jul 11 '18 at 16:33

1 Answers1

1

This is not possible using JavaScript. If it were possible, that would be a major security risk.

It is however possible from the server. The server can send the data to the client.

Another solution is to use an ActiveX plugin.

http://forums.asp.net/t/1490314.aspx?how+do+get+Client+Machnine+Name+through+Javascript

Sam P
  • 1,821
  • 13
  • 26