Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Tomcat server use TCP or UDP?

Tags:

tomcat

I have to open some ports in my firewall to let users access Tomcat through the network. I have to specify the port type. Does tomcat use TCP or UDP?


1 Answers

Since you're (apparently) using Tomcat as an HTTP server, it's probably safe to assume that you want TCP.

From the Tomcat docs:

The Coyote HTTP/1.1 Connector element represents a Connector component that supports the HTTP/1.1 protocol. It enables Catalina to function as a stand-alone web server, in addition to its ability to execute servlets and JSP pages. A particular instance of this component listens for connections on a specific TCP port number on the server.

like image 147
Alex Johnson Avatar answered Oct 26 '25 02:10

Alex Johnson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!