ARTICLE AD BOX
I have a Java web application that needs to know the computer name of clients connecting to it.
i not need (InetAddress.getLocalHost().getHostName()) this give hostname from server
but
i need user machine name
and also work for https
New contributor
Rohit Kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
2

You can't. It's none of your business what I named my computer. What's more: what's a computer name anyways? There's no such unified concept across devices and operating systems. Neither does HTTP/S define such a concept.
2026-03-10 07:29:41 +00:00
Commented 30 mins ago
You can. Use WebRTC and decrypt the SDP.
2026-03-10 07:42:11 +00:00
Commented 18 mins ago