#Beginners question about the ports of Tomcat and http

1 messages · Page 1 of 1 (latest)

strange river
#

Per default, Tomcat starts like this:
Tomcat started on port(s): 8080 (http)
As far as I know, http always has port 80
So how can Tomcat have port 8080 and communicate via http at the same time?
Is it possible that a communication involves TWO ports? First it goes to port 80 and then from there it goes to 8080?

verbal hearthBOT
#

This post has been reserved for your question.

Hey @strange river! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

shell lynx
#

you misunderstand how ports work

#

the standard http port is merely a suggestion

#

not providing any port in a compliant url parser will assume port 80 for http and port 443 for https

#

http://abc.com implies port 80
http://abc.com:1234 specifies port 1234

#

you can specify ports explicitly by adding a : after the host

strange river
#

@shell lynx ah that explains it perfectly. thank you very much for the concise explaination

verbal hearthBOT