out.print( "ip : "+request.getRemoteHost() );
InetAddress ip= InetAddress.getByName(""+request.getRemoteHost());
String host=ip.getHostName();
InetAddress host1=ip;
out.print("host "+host);
How can i get the username and domain name of client system in java as i can get the ip address and host name using request.getRemoteHost
..
using whoami am getting the server pc username. while i need the logged in username