Hi, > -----Original Message----- > From: Venkata Surapaneni [mailto:vsurapan...@imedx.com] > Sent: Sunday, August 21, 2011 12:26 PM > To: Tomcat Users List > Subject: RE: Tomcat 5.5.28 on 64 bit windows server 2008. > > And on top of this all the log look clean. Nothing looks suspicious. > > ======================================================================= > ============================================= > > As suggested I have installed the latest version(5.5.33) of Tomcat > 5.5.x. After installing I have typed in the browser 'http://localhost' > to check if the tomcat is installed properly. The home page is > displayed indicating that the installation is fine. Then I typed in ip > address of the machine 'http://10.4.2.10' and page not found page is > displayed. This is exactly the same problem why we have downgraded the > version. There are no changes or customizations made to the > installation. It was default installation and the only change is to use > port 80 instead of 8080. > > (...)
I see the same behavior when installing Tomcat 5.5.33 (Core) on Windows 7 32 bit. Without changing anything in the config nor other Tomcat files, after starting Tomcat, http://localhost:8080/ works, whereas http://192.168.0.4:8080/ (the LAN IP) does not (Connecting to that port fails). Note that also http://127.0.0.1:8080/ does not work. >From looking at netstat, it looks like Tomcat is only binding to the IPv6 addresses, but not to IPv4 addresses, so http://127.0.0.1:8080/ can't work. Netstat's output for the Tomcat process ("ABHÖREN" means "LISTENING"): TCP [::]:8009 [::]:0 ABHÖREN 3028 TCP [::]:8080 [::]:0 ABHÖREN 3028 The default installation of Tomcat 5.5.33 uses Tomcat Native 1.1.20. After I remove/rename the tcnative-1.dll in Tomcat's bin directory and restarting Tomcat, now Tomcat binds also to IPv4 addresses and http://127.0.0.1:8080/ (and the variant with the LAN IP) works. Netstat: TCP 0.0.0.0:8009 0.0.0.0:0 ABHREN 3596 TCP 0.0.0.0:8080 0.0.0.0:0 ABHREN 3596 TCP [::]:8009 [::]:0 ABHREN 3596 TCP [::]:8080 [::]:0 ABHREN 3596 With Tomcat 7.0.20 (using TC Native) and without changing anything in the config, it seems to only bind to the IPv4 addresses, but no IPv6. TCP 0.0.0.0:8009 0.0.0.0:0 ABHREN 2864 TCP 0.0.0.0:8080 0.0.0.0:0 ABHREN 2864 When using Tomcat 7.0.20 (without Native), it binds to IPv4 as well as IPv6 (like Tomcat 5.5.33 without Native). However I could get TC 5.5.33 to bind on the IPv4 address, by adding the "address" attribute to the <Connector> element in server.xml. Maybe you could try this and see if it solves the problem? <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --> <Connector port="8080" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" address="0.0.0.0" /> However it seems a bit strange that TC 5.5.33 is only binding to the IPv6 addresses by default/using Native. Regards, Konstantin Preißer --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org