Skip to content
$ learn ports

Common ports and what they are used for

A quick reference of well-known ports, proxy ports and what to keep closed.

A network port is a number from 0 to 65535 that tells the operating system which program should receive an incoming connection on an IP address. The IP address finds the machine; the port finds the service. This page lists the ports you will meet most often, what runs on them, and which ones matter when you work with proxies and servers.

How ports work

Each connection is identified by source address, source port, destination address and destination port, plus the protocol. Two transport protocols matter in practice:

The IANA registry groups ports into well-known (0 to 1023), registered (1024 to 49151) and dynamic (49152 and above). The numbers below are conventions: nothing stops someone from running SSH on port 8080 or a web server on 22, so an open port tells you what is likely running, not what is.

Common ports list

PortProtocolServiceNotes
20, 21TCPFTP data, controlPlain text. Prefer SFTP.
22TCPSSH, SFTPRemote shell and file transfer.
23TCPTelnetUnencrypted; legacy devices only.
25TCPSMTPServer-to-server mail. Often blocked by ISPs and clouds.
53UDP and TCPDNSUDP for most queries, TCP for large responses and zone transfers.
80TCPHTTPUnencrypted web.
110TCPPOP3Mail retrieval, plain text.
123UDPNTPTime sync.
143TCPIMAPMail access, plain or STARTTLS.
443TCPHTTPSEncrypted web. HTTP/3 (QUIC) also uses UDP 443.
445TCPSMBWindows file sharing. Never expose to the internet.
465TCPSMTPSMail submission over implicit TLS.
587TCPSMTP submissionMail submission with STARTTLS and login.
993TCPIMAPSIMAP over TLS.
995TCPPOP3SPOP3 over TLS.
1080TCPSOCKSDefault SOCKS proxy port.
1433TCPMicrosoft SQL ServerDatabase; keep private.
3128TCPSquid / HTTP proxyDefault Squid port.
3306TCPMySQL / MariaDBDatabase; keep private.
3389TCPRDPWindows remote desktop; frequent attack target.
5432TCPPostgreSQLDatabase; keep private.
5900TCPVNCRemote desktop; often weakly protected.
6379TCPRedisShould never be public without authentication.
8080TCPAlternative HTTPCommon for proxies, dev servers, admin panels.
8443TCPAlternative HTTPSControl panels and app servers.
8888TCPAlternative HTTPUsed by some proxies and dev tools.
9050TCPTor SOCKSLocal SOCKS port of the Tor daemon.
27017TCPMongoDBDatabase; keep private.

Ports you will see on proxy lists

Proxy lists are almost always written as ip:port, and the port hints at the protocol. It is only a hint, so test before you trust it:

Providers also use ports in the 10000 to 60000 range. The only reliable way to know the protocol is to try it: the proxy checker connects over HTTP first and then SOCKS5 and reports which one answers. Read more about the difference in HTTP vs SOCKS5 proxy.

Checking which ports are open

An open port is one where something accepts connections. You can test from your own machine:

# is port 443 reachable on a host?
nc -vz example.com 443

# what is listening on my server?
ss -tlnp        # Linux
lsof -iTCP -sTCP:LISTEN -n -P   # macOS

For a view from outside, use the port scanner. It makes TCP connections only, accepts up to 100 ports per scan, and shows the first line a service sends if there is one. It cannot test UDP ports such as DNS or NTP. Scan only hosts you own or are authorized to test; the tool refuses private and reserved addresses.

Reading scan results

A TCP scan reports each port as open, closed or filtered. Open means a handshake completed, so a service is listening. Closed means the host answered with a reset: nothing listens there, but the host is reachable. Filtered or timed out usually means a firewall dropped the packets, or the host is down. Treat a banner (the first line a service sends) as a clue only; many services send nothing until you speak first, and banners can be changed or hidden.

When you find an unexpected open port, ask three questions: what process owns it, does it need to be reachable from the internet, and is it patched and authenticated? If the answer to the second is no, bind the service to 127.0.0.1 or block the port in the firewall.

Security notes

If a port that should be closed shows as open, find the process with ss or lsof, then close it or restrict it with a firewall rule.

Published and last updated 2026-12-02