Ports / HTTPS

TCP and UDP port

Port 443: HTTPS

TCP port 443 is HTTPS: HTTP inside TLS, the default port of every https:// address. HTTP/3 uses UDP port 443, over QUIC.

  • TLS encrypts the requests and makes the server prove, with a certificate, that it is the name you asked for.
  • Almost every network lets port 443 out, so DNS over HTTPS and SSL VPNs use it too.

Check port 443 on Linux

Put the server's name or address in place of HOST.

ss -tlnp 'sport = :443'
On the server: is a program listening on TCP port 443, on which address, and which program? How to read ss.
nc -zv HOST 443
From a client: does a TCP connection to port 443 open, get refused, or time out? How to read nc.
tcpdump -ni any tcp port 443
On either end: the packets to and from TCP port 443, as they cross the card. How to read tcpdump.
nmap -p 443 HOST
From outside: is TCP port 443 open, closed or filtered? How to read nmap.
ss -ulnp 'sport = :443'
On the server: is a program listening on UDP port 443, and which? How to read ss.
tcpdump -ni any udp port 443
On either end: the datagrams to and from UDP port 443. With UDP this is the sure test, since nothing is acknowledged. How to read tcpdump.
nmap -sU -p 443 HOST
From outside: a UDP scan of port 443. No answer reads open|filtered: UDP does not say which. How to read nmap.

What runs on it

TLS and certificates
Encryption plus proof of identity: the server shows a certificate for the name, signed by a trusted authority.
Port
A 16-bit number that picks the program on a device: web 80 and 443, DNS 53, SSH 22.
HTTP
The web's request and response protocol: plain text over TCP unless wrapped in TLS.
HTTP/3 and QUIC
HTTP over QUIC: a transport on UDP port 443 with TLS 1.3 built in and streams that do not block each other.
Encrypted DNS
DNS questions sent inside TLS (DoT, port 853) or HTTPS (DoH, port 443), so the path cannot read or change them.
Clientless VPN
Remote access through a web portal in the browser, over HTTPS, with nothing installed and no route into the network.

Use port 443 on real machines

Open HTTPS and TLS: lock a site and prove who it is

When it breaks

Sources

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab