Tomcat is running, but my web browser says it can't connect

This could be caused by a number of different issues:

  • Tomcat didn’t start completely. See “Tomcat won’t start”.
  • Your web browser is trying to access Tomcat on the wrong port. Typically, Tomcat is configured to open its web server on port 8080, not port 80, but on some systems the port might be different. To verify which port to use, look for the <Connector> elements in your Tomcat instance’s conf/server.xml file. In your web browser, make sure the URL includes the correct host and port separated by a colon, such as http://localhost:8080.
  • A firewall on the computer that runs the browser or the Tomcat instance is preventing connections. A TCP connection must be allowed from your web browser all the way to your Tomcat instance’s web server port. If anything between these two points is dropping or otherwise blocking TCP packets, your web browser will not be able to connect to Tomcat. The documentation that came with your firewall should provide troubleshooting advice for your firewall and operating system.
  • The hostname is not configured correctly in your DNS. The hostname you're using to connect to must be properly mapped in DNS to point to your Tomcat instance.


Tomcat Download
Free Tomcat Training - Apache Tomcat

Sign up for our Newsletter!