https://issues.apache.org/bugzilla/show_bug.cgi?id=56661
Bug ID: 56661
Summary: ServletRequest#getLocalAddr() returns the hostname,
not the IP address
Product: Tomcat 7
Version: 7.0.53
Hardware: All
OS: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: Servlet & JSP API
Assignee: [email protected]
Reporter: [email protected]
request.getLocalAddr() does not return an IP-address, but the host name from
the http header.
Accessing http://127.0.0.1:8080/ will make getLocalAddr() return 127.0.0.1
Accessing http://localhost:8080/ will make getLocalAddr() return localhost
Accessing http://localhost/ using mod_jk/ajp13 will also make getLocalAddr()
return localhost
I see this on java7 using MacOS and FreeBSD.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]