Port 443 (HTTPS)
Key facts
- Port
- 443
- Protocols
- TCP, UDP
- Range
- System port (Well-Known), 0-1023
- IANA service name
- https
IANA assigns ports in this range to well-known services, under RFC 6335.
About port 443
Port 443 is the default port of HTTPS, which is HTTP over a TLS-encrypted connection, and it runs over TCP and also over UDP for HTTP/3. Most websites today load through port 443, and the padlock in the browser's address bar marks such an encrypted connection.
IANA registers port 443 for the https service, with a reference to RFC 9110. HTTP/3 is defined in RFC 9114 and runs over QUIC, which is defined in RFC 9000.
What port 443 is used for
- HTTPS over TCP: the browser's regular connection to a site, over HTTP/1.1 or HTTP/2, encrypted with the site's SSL certificate.
- HTTP/3 over UDP: the new version of HTTP runs over QUIC, which uses UDP. The server tells the browser it supports HTTP/3 with the Alt-Svc header, and the browser tries to connect over UDP, usually to the same port 443. When the UDP connection fails, the browser keeps working over TCP.
- APIs and services: APIs, webhook calls, and cloud services also communicate over HTTPS on port 443.
At the start of the connection, the browser sends the site name (SNI), so one server can serve many sites on port 443, each with its own certificate.
Port 443 in the firewall
On a web server, open TCP port 443 to incoming traffic from any address. When the server also serves HTTP/3, also open UDP port 443. Without UDP, the site keeps working over TCP, but it doesn't get the benefits of HTTP/3.
- UFW:
ufw allow 443/tcpandufw allow 443/udp - firewalld:
firewall-cmd --permanent --add-service=httpsandfirewall-cmd --permanent --add-port=443/udp
Even a server that doesn't serve websites usually needs outgoing connections to port 443, for example for system updates and connections to API services.
Risks and security
Encryption on port 443 protects data on its way between the visitor and the server, and the level of protection depends on the settings:
- Use a valid SSL certificate, and set up automatic renewal so it doesn't expire.
- Allow only current TLS versions, and disable old versions that are no longer considered secure.
- Make sure the server sends the full certificate chain, including intermediate certificates, so every device recognizes the certificate.
- Add the HSTS header and the other common security headers.
Encryption protects the connection, not the site itself, so software updates, strong passwords, and a web application firewall (WAF) remain part of the site's security.
Commands to check and configure
-
ss -tulpn | grep ':443 'Shows which processes are listening on port 443, on TCP and UDP. Listening on UDP usually indicates HTTP/3 support.
-
curl -I https://example.comShows the response headers and the HTTP version the site responded with.
-
curl -sI https://example.com | grep -i alt-svcChecks whether the site announces HTTP/3 (h3) support in the Alt-Svc header.
-
curl --http3 -I https://example.comConnects to the site over HTTP/3. Requires a curl build with HTTP/3 support.
-
openssl s_client -connect example.com:443 -servername example.comShows the certificate, the certificate chain, and the negotiated TLS version.
-
nc -zv example.com 443Checks whether TCP port 443 on the server is open and reachable.
-
ufw allow 443/tcpOpens TCP port 443 to incoming traffic (UFW).
-
ufw allow 443/udpOpens UDP port 443, for HTTP/3 (UFW).
-
firewall-cmd --permanent --add-service=httpsOpens TCP port 443 in firewalld.
-
firewall-cmd --permanent --add-port=443/udpOpens UDP port 443 in firewalld, for HTTP/3. Then run firewall-cmd --reload.
Port 443 in the IANA registry
| Port | Protocol | Service | IANA registry description |
|---|---|---|---|
| 443 | SCTP | https | HTTPS |
| 443 | TCP | https | http protocol over TLS/SSL |
| 443 | UDP | https | http protocol over TLS/SSL |
Data source: IANA Service Name and Transport Protocol Port Number Registry (opens in a new tab)
Port 443 FAQ
Does HTTP/3 use port 443?
Yes. HTTP/3 runs over QUIC on UDP, and servers usually serve it on UDP port 443, alongside regular HTTPS on TCP port 443. To allow HTTP/3, also open port 443 on UDP in the firewall.
What happens when UDP port 443 is closed?
The site keeps working as usual. The browser tries to connect over HTTP/3, and when the UDP connection fails, it uses regular HTTPS over TCP. The only difference is that the site doesn't get the benefits of HTTP/3, such as faster connections on mobile networks.
Can I serve several sites with different certificates on port 443?
Yes. The browser sends the site name at the very start of the connection (SNI), and the server uses it to choose the right certificate. This way, one server with one IP address serves many sites on port 443, each with its own SSL certificate.
How do I check the SSL certificate the server presents on port 443?
The command openssl s_client -connect example.com:443 -servername example.com shows the certificate, the certificate chain, and the expiration date. The OpenSSL commands page has more commands for checking certificates, and the Common browser SSL errors page explains what the errors shown by the browser mean.