tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46082] AJP HttpServletRequest.getLocalAddr() returns null when using the AJP Connector
Date Mon, 27 Oct 2008 21:38:28 GMT

Mark Thomas <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Mark Thomas <>  2008-10-27 14:38:27 PST ---
The AJP protocol only passes the web server host name and port. It does not
pass the IP address. Therefore, getLocalName() will return whatever is passed
via AJP but getLocalAddr() will always return null.

Whilst getLocalAddr() could be modified to return the IP address Tomcat is
listening on for AJP connections, I don't like the inconsistency that would
generate when compared to getLocalName() and getLocalPort().

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message