I have a problem that I do not know if it is possible to solve, I am developing an intranet system and I need to get the local user name (ie pc client).
I tried to use System.getenv("username")
, which returned the username of the server machine.
I have also tried request.getRemoteUser()
, request.getUserPrincipal()
, request.getAuthType()
and they all returned NULL
.
Does anyone know how to do this?