Bootstrap FreeKB - Tomcat - Web browser port
Tomcat - Web browser port

Updated:   |  Tomcat articles

The ports used by Tomcat web browser interface are listed in the server.xml file. By default, Tomcat listens for HTTP connections on port 8080 and HTTPS connections on 8443. However, HTTPS is disabled by default. Refer to Tomcat - Encrypt inbound requests (SSL / TLS / keystore) for the steps on how to setup Tomcat to use HTTPS.

<Connector port="8080" 
           protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443" />

 

If you want to update Tomcat to listen on some other port for HTTP and HTTPS, you will:

  1. Shutdown Tomcat
  2. Update the HTTP and HTTPS port in server.xml
  3. Startup Tomcat

 

Tomcat can now be accessed using the new port. In this example, Tomcat is listening for HTTP connections on port 8081.




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 1f93b7 in the box below so that we can be sure you are a human.