DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=43588>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43588 Summary: Tomcat uses hardcoded 127.0.0.1 for localhost Product: Tomcat 6 Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Tomcat uses IP 127.0.0.1 when talking to localhost. This will be correct in most cases but will not work on special setups, e.g. linux vserver guests where 127.0.0.1 is the host machine, the guest machine "localhost IP" can be any other (e.g. 127.0.0.2 or 10.0.0.1). Though unusual, such configuration seems to be ok according to the IP RFCs. The problem is that tomcat ignores this possibility and does not ask the OS for the localhost IP via getAddressByName("localhost"), it uses a hardcoded 127.0.0.1, e.g. ./java/org/apache/catalina/startup/Catalina.java: Socket socket = new Socket("127.0.0.1", server.getPort()); -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]