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:
- TCP is connection-oriented and reliable. Web, email, SSH and databases use it.
- UDP is connectionless. DNS queries, NTP and many streaming and game protocols use it.
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
| Port | Protocol | Service | Notes |
|---|---|---|---|
| 20, 21 | TCP | FTP data, control | Plain text. Prefer SFTP. |
| 22 | TCP | SSH, SFTP | Remote shell and file transfer. |
| 23 | TCP | Telnet | Unencrypted; legacy devices only. |
| 25 | TCP | SMTP | Server-to-server mail. Often blocked by ISPs and clouds. |
| 53 | UDP and TCP | DNS | UDP for most queries, TCP for large responses and zone transfers. |
| 80 | TCP | HTTP | Unencrypted web. |
| 110 | TCP | POP3 | Mail retrieval, plain text. |
| 123 | UDP | NTP | Time sync. |
| 143 | TCP | IMAP | Mail access, plain or STARTTLS. |
| 443 | TCP | HTTPS | Encrypted web. HTTP/3 (QUIC) also uses UDP 443. |
| 445 | TCP | SMB | Windows file sharing. Never expose to the internet. |
| 465 | TCP | SMTPS | Mail submission over implicit TLS. |
| 587 | TCP | SMTP submission | Mail submission with STARTTLS and login. |
| 993 | TCP | IMAPS | IMAP over TLS. |
| 995 | TCP | POP3S | POP3 over TLS. |
| 1080 | TCP | SOCKS | Default SOCKS proxy port. |
| 1433 | TCP | Microsoft SQL Server | Database; keep private. |
| 3128 | TCP | Squid / HTTP proxy | Default Squid port. |
| 3306 | TCP | MySQL / MariaDB | Database; keep private. |
| 3389 | TCP | RDP | Windows remote desktop; frequent attack target. |
| 5432 | TCP | PostgreSQL | Database; keep private. |
| 5900 | TCP | VNC | Remote desktop; often weakly protected. |
| 6379 | TCP | Redis | Should never be public without authentication. |
| 8080 | TCP | Alternative HTTP | Common for proxies, dev servers, admin panels. |
| 8443 | TCP | Alternative HTTPS | Control panels and app servers. |
| 8888 | TCP | Alternative HTTP | Used by some proxies and dev tools. |
| 9050 | TCP | Tor SOCKS | Local SOCKS port of the Tor daemon. |
| 27017 | TCP | MongoDB | Database; 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:
- 3128: the Squid default, normally an HTTP proxy.
- 8080: very common for HTTP proxies and also for web apps.
- 8888: another frequent HTTP proxy port.
- 1080: the conventional SOCKS port, usually SOCKS5 or SOCKS4.
- 9050: the Tor daemon's SOCKS port on the local machine (the Tor Browser uses 9150). It is not meant to be exposed publicly.
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
- Expose the minimum. Databases (3306, 5432, 6379, 27017, 1433), SMB (445) and RDP (3389) should sit behind a firewall or VPN, not on the open internet.
- Moving a port is not security. Changing SSH from 22 reduces log noise from bots, but does not stop a targeted scan.
- Open proxy ports are abused. An unauthenticated proxy on 3128 or 8080 will be found and used by strangers. Require authentication or restrict by IP.
- "Closed" and "filtered" differ. A closed port actively refuses; a filtered port silently drops packets, which usually means a firewall.
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.