Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use another port other than 443 for HTTPS/SSL communication?

Tags:

https

443 port is typically used for HTTPS/SSL. But is it the only option we can choose for HTTPS/SSL communication. If not, why?

like image 541
LiangWang Avatar asked Apr 02 '15 13:04

LiangWang


People also ask

Is 443 the only HTTPS port?

A website and a server connection is made via port either by 80 or 443. Port 80 is used for HTTP service, which does not provide any security for the data to be travelled, while port 443 is used for HTTPS service that's the main purpose of securing the communication channel.

What ports can be used for SSL?

Port 443 is the SSL function for HTTPS, used to transmit web pages securely through encryption techniques. Information that travels through port 443 is encrypted using SSL/TLS technology. This means that the connection is secure, and information is kept safe while in transit.

Can I use port 8080 for HTTPS?

You should not use port 8080 for https traffic. That port is conventionally used for non-secured data, akin to the use of port 80 for default external http. Port 8443 is the standard for Tomcat secured (SSL/TLS) data, corresponding to the common HTTPS port 443. You cannot use the same port for both http and https.


1 Answers

The port number is not "magic", you can use any port from 1-65535 you like. There are only 2 conditions:

  1. Both the server and the client have to (agree to) use the same port number.
  2. Ports in the range 1-1023 are "well known ports" which are assigned worldwide to specific applications or protocols. If you use one of these port numbers, you may run into conflicts with the "well known" applications. Ports from 1024 on are freely useable.

As an example, you could use port 30443 for SSL VPN if your VPN gateway supports port reassignment and the SSL VPN client (if any) does this as well. If you access SSL VPN via web portal, you can add the custom port number in the URL like this: "https://mysslvpnserver.com:30443".
Beware that public internet feeds (hotels, hotspots) often block high ports > 1024.

like image 171
user1016274 Avatar answered Oct 24 '22 12:10

user1016274