What's special about port 80?

I did some customization, including releasing some ports, assigning them to applications. I've seen a lot of applications want port 80. May I ask what's so special about it? Why not port 90? 70?

+3


source to share


2 answers


As @Glorfindel stated, port 80 is the standard for HTTP.

To clarify, there are a number of fixed TCP ports, UDP is "reserved" for different services from 1 to 1024. The best practice is to use a port number greater than 1024 for non-standard traffic.

For example, you may need both an IIS server and a tomcat server running on the same machine. you can set 80 to one and 8080 to the other, or 8080 to one and 8090 to the other. (note that on J2EE servers like Tomcat, Glassfish, Weblogic, etc., 8080 is often the default, which is also defined as HTTP_alternate)



Also, on some operating systems you need elevated privileges (administrator / root) to register a port below 1024, so you can use port 8080 instead of 80 for ease of use.

Further reading suggestion: https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

Please also note that (at least historically) Skype for example used port 80 to listen as it is open on many routers etc.

+2


source


Port 80 is the standard for HTTP , which is the main network protocol.

So, if you have a URL like this (no port number):



http://stackoverflow.com/questions/31242839/what-is-so-special-with-port-80/31242897#31242897

      

your browser will communicate with the web server on port 80.

+1


source







All Articles