We are using request.getRemoteHost()
in the jsp page to get the hostname of the client but it ll return only IP address of the client system
Is any other way to get the client system host name from java-script,jsp,...
We are using request.getRemoteHost()
in the jsp page to get the hostname of the client but it ll return only IP address of the client system
Is any other way to get the client system host name from java-script,jsp,...
If you server has enableLookups ( for example for Tomcat ) on false this getRemoteHost() will return only ip . Simplest solution would be to just change property and force resolving of ip to hostname.