On the internet, many suggest using window.location.hostname
But this code gives the domain name
What I'm interested is the system's hostname(In the command prompt, run hostname)
Is it possible to get the System's hostname in Angular 14?
On the internet, many suggest using window.location.hostname
But this code gives the domain name
What I'm interested is the system's hostname(In the command prompt, run hostname)
Is it possible to get the System's hostname in Angular 14?
That's not possible.
There is no JS API to access the system hostname, that would be a privacy nightmare.
Edit: Actually there was a way on Internet Explorer with ActiveX.