getRemoteHost « Request « JSP-Servlet Q&A





2. Fwd: JSP request.getRemoteHost() returns IP address instead of host name    java.net

> From: Andy Knight > Date: 23 September 2009 15:39:53 GMT+01:00 > To: dev@glassfish.dev.java.net > Bcc: Andrew Hopkinson > Subject: JSP request.getRemoteHost() returns IP address instead of > host name > > My research indicates that Tomcat, by default, has a configuration > parameter called enableLookups. By default this is false. Under such > circumstances an invocation of request.getRemoteHost() ...