Port 443 Not Working: How to Open and Test HTTPS
Port 443 is the standard TCP port for HTTPS. IANA's registry lists https on port 443 for TCP, with UDP and SCTP entries as well. When a site loads on HTTP but not HTTPS, or a certificate cannot be issued, the first thing to test is whether anything can reach port 443 on your server. This guide walks through the checks in the order that finds the fault fastest.
What you see when 443 is the problem
| Symptom | Most likely cause |
|---|---|
| Connection refused | Nothing listens on 443 |
| Connection timed out | A firewall drops the traffic |
| Certificate warning | Something listens, with the wrong certificate |
| Works on LAN, not from outside | Router or provider blocks it |
| Port 80 works, 443 does not | No SSL virtual host, or only port 80 is open |
A refused connection means the server answered and said no. A timeout means no answer came back. They have different fixes, so note which you get.
Step 1: Is anything listening
On the server, list listeners on port 443:
sudo ss -tlnp | grep ':443'
On Windows:
netstat -ano | findstr :443
If the output is empty, no web server has an HTTPS site enabled. For Nginx, you need a server block with listen 443 ssl; and certificate paths. Check the config with sudo nginx -t. With Apache, enable the SSL module and a virtual host on port 443. If another program holds the port, stop it or move it. IIS needs an HTTPS binding, see how to install free SSL on IIS.
Step 2: Open the server firewall
On Ubuntu with UFW:
sudo ufw allow 443/tcp
sudo ufw status
On firewalld:
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
Then check the cloud provider's security group or network firewall. Many hosts block everything except the ports you allow there, and a rule on the server itself will not help.
Step 3: Test from outside
Test from a different network, such as a phone on mobile data. Testing from the server itself proves little.
curl -vI https://example.com/
openssl s_client -connect example.com:443 \
-servername example.com </dev/null
On Windows PowerShell, Test-NetConnection example.com -Port 443 shows whether the TCP connection succeeds. If it succeeds but the browser warns, the certificate is wrong. See Fix SSL Certificate Errors.
Step 4: Home and office networks
If the server is behind a router, forward TCP port 443 to the server's local address. Some residential providers block inbound ports. Let's Encrypt's challenge page notes that some residential ISPs block port 80, which is rare, but it can happen. If 443 is blocked too, a tunnel is a way around it. See the Cloudflare Tunnel guide and the Synology guide for a NAS.
Ports 80 and 443 for Let's Encrypt
Let's Encrypt's challenge page explains the roles. The HTTP-01 challenge can only be done on port 80, and the validation follows redirects only to ports 80 or 443. TLS-ALPN-01 is performed over TLS on port 443 and works if port 80 is unavailable. DNS-01 needs neither port. So for the usual setup, keep both open. Closing port 80 after you get a certificate breaks the next renewal. See HTTP-01 validation, TLS-ALPN-01 validation and DNS-01 validation.
Common mistakes
- **Opening the port in the wrong place.** The server firewall, the cloud security group and the router are three separate layers. All must allow TCP 443.
- **Listening only on IPv4 or only on IPv6.** If your DNS has an AAAA record, the server must also answer on IPv6, or some visitors will time out.
- **A redirect loop.** A proxy that talks to the server over HTTP while the server redirects to HTTPS loops forever. Fix the scheme between them.
- **Two services fighting for 443.** A reverse proxy and a web server cannot both bind the same address. Put one behind the other on a private port.
- **Testing only the IP.** Without the host name, the server may return its default certificate. Always pass the name, as the
-servernameoption does above.
Using another port
You can run HTTPS on a port other than 443, but visitors must type it in the address, and many networks block unusual ports. Proxies and tunnels can map a public name to a service on a high port without that. Keep 443 for the public site if you can.
Final check
When the connection succeeds, confirm certificate, chain and expiry with the free SSL checker. If the chain is incomplete, see what fullchain.pem is.
Sources: IANA Service Name and Transport Protocol Port Number Registry, Let's Encrypt documentation on challenge types.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.