Https Port 8080: What is the port 8080 used for?

Https Port 8080 | According to these conventions, Port 80 is HTTP, Port 443 is HTTPS. It’s not part of the “formal” convention, but an agreement (meaning something people often do) with that:

As mentioned earlier, the common use of ports 8080 and 8443 is completely separate from these conventions for application servers serving HTTP (on the 8080) and HTTPS (on the 8043).

When application servers first came into widespread use, they usually had an Apache server in front of them on ports 80 and 443, handling simpler things like serving static content. This means that these ports were not available for the application server to use directly. The use of a high-number port with the same last digits of the application servers made it easy to track.

Note that there is absolutely nothing inherent in ports that determines which program is listening on which port and which protocol that program is using. Port 8080 can run HTTPS, and 8443 can run HTTP instead of the other way around. For that matter, port 80 can run HTTPS, and port 443 can run HTTP.

But it will make things more complicated than they need to be if you choose to go against people’s expectations.

What is the port 8080 used for?

Ports don’t care what protocol they are being served through. Any link between a port and a protocol is only for human convenience.

Port 8080 is a high-number non-standard port that is popular as an alternative port for HTTP servers, often application servers (such as Java application servers, etc.).

Port 8443 is a non-standard large number port and is the usual alternate port for HTTPS servers.

Ports 1024 and below are the restricted or privileged range used for “known ports” for various services. On Unix-based or Unix-derived operating systems (which most Internet servers run on), you need root authority to associate a process with a privileged port.

Are port 80 and 8080 the same?

The answer is NO:-

Ports with two different values ​​can never be the same.

You should be well aware of the fact that “port 80” is a well known port for the “HTTP” service. Furthermore, the Internet Assigned Numbers Authority (IANA) has dedicated ports ranging from
“0–1023” as a known system or ports where
Ports range from “1024-49151” as user or registered ports and
Ports above 49,151 are designated as private ports.

Here, “port 8080” is registered as an alternate port for the “HTTP” service.

Now, here’s what you need to know in practice:

If you have a web server already running on the default ‘port 80’ and you need to host another web server on the ‘HTTP’ service, you will have to host it on ‘port 8080’ which is best practice.
But it is not mandatory. You can use any other dedicated port instead of “8080”. The only thing you have to make sure is that the port you assign does not conflict with any other port used in your network and there must be proper port assignment in your router/firewall. ”