tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43588] New: - Tomcat uses hardcoded 127.0.0.1 for localhost
Date Wed, 10 Oct 2007 17:09:10 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: roman.fiedler@telbiomed.at


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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message