Common port numbers
A port number tells a computer which program a packet is for. Here are the ports you will meet in firewall rules, router settings and error messages, grouped by what they do, with the ones you should never expose marked.
In this guide
A port is a 16-bit number from 0 to 65535 that identifies a program or service on a device; the IP address gets a packet to the machine and the port gets it to the right program. The most common are 80 (HTTP), 443 (HTTPS), 22 (SSH), 25/465/587 (sending mail), 110/143/993/995 (reading mail), 53 (DNS), 3389 (Remote Desktop) and 3306/5432 (MySQL, PostgreSQL). Ports 0–1023 are reserved for standard services.
What a port number is
An IP address identifies a device, but a device runs many programs that all use the network at once: a browser, a mail client, a game, a file-sharing service. The port number is how the two ends agree which program a packet belongs to. Every TCP and UDP packet carries a source port and a destination port, so a web request to 203.0.113.42:443 is read as "the HTTPS program on the machine at 203.0.113.42".
Servers listen on fixed, published ports so that clients know where to knock. Clients use a random high port for their end of the conversation, which is why you never configure a port for your browser. There are 65,536 possible numbers, divided into three ranges by the registry IANA maintains:
| Range | Name | What lives there |
|---|---|---|
| 0–1023 | System ports (well-known) | The standard services: web, mail, DNS, SSH. Binding one needs administrator rights on most systems. |
| 1024–49151 | User ports (registered) | Applications that registered a number: databases, VPNs, games, admin panels |
| 49152–65535 | Dynamic or private ports | Never assigned; used for the client side of connections and for temporary services |
TCP and UDP have separate port spaces, so TCP 53 and UDP 53 are different doors, even though DNS happens to use both. A service listed as "TCP" below does not answer UDP packets on the same number. Every port in the first two ranges is listed in the IANA registry; the tables here are the subset that actually turns up in day-to-day work.
Well-known ports (0–1023)
| Port | Protocol | Service | What it does |
|---|---|---|---|
| 20, 21 | TCP | FTP | File transfer: 21 for commands, 20 for data in active mode |
| 22 | TCP | SSH | Secure shell, SFTP and SCP file transfer, port forwarding |
| 23 | TCP | Telnet | Unencrypted remote login; should never be open to the internet |
| 25 | TCP | SMTP | Mail transfer between servers; most ISPs block it outbound |
| 53 | UDP and TCP | DNS | Name lookups; UDP for most queries, TCP for large answers and zone transfers |
| 67, 68 | UDP | DHCP | Automatic address assignment: 67 on the server, 68 on the client |
| 69 | UDP | TFTP | Trivial file transfer, used for booting network devices |
| 80 | TCP | HTTP | Unencrypted web |
| 88 | UDP and TCP | Kerberos | Authentication in Windows domains; also used by Xbox network |
| 110 | TCP | POP3 | Downloading mail, unencrypted |
| 123 | UDP | NTP | Clock synchronization |
| 137–139 | UDP and TCP | NetBIOS | Legacy Windows name service and file sharing |
| 143 | TCP | IMAP | Reading mail on the server, unencrypted |
| 161, 162 | UDP | SNMP | Device monitoring: 161 for queries, 162 for traps |
| 389 | TCP and UDP | LDAP | Directory lookups, including Active Directory |
| 443 | TCP and UDP | HTTPS | Encrypted web; UDP 443 carries HTTP/3 (QUIC) |
| 445 | TCP | SMB | Windows file and printer sharing; a frequent ransomware entry point when exposed |
| 465 | TCP | SMTPS | Mail submission over TLS |
| 500, 4500 | UDP | IKE / IPsec NAT-T | IPsec VPN negotiation and traversal through NAT |
| 514 | UDP | Syslog | Log forwarding |
| 515, 631, 9100 | TCP | LPD, IPP, raw | Printing: IPP on 631 is what AirPrint and CUPS use; 9100 is raw printing on most office printers |
| 587 | TCP | SMTP submission | Sending mail from a client to its provider with STARTTLS |
| 636 | TCP | LDAPS | LDAP over TLS |
| 853 | TCP and UDP | DNS over TLS / QUIC | Encrypted DNS, the transport behind Android's Private DNS |
| 993 | TCP | IMAPS | IMAP over TLS, the setting most mail apps use |
| 995 | TCP | POP3S | POP3 over TLS |
Three of these deserve a warning. Telnet (23), SMB (445) and the NetBIOS trio (137–139) carry logins or file access with weak or no encryption, and every address on the internet is scanned for them continuously. They should be reachable only inside your network. The port checker tests whether a port on your public address answers from outside; for those three, the right result is closed or filtered.
Popular registered ports (1024–49151)
| Port | Protocol | Service | What it does |
|---|---|---|---|
| 1194 | UDP (or TCP) | OpenVPN | Default OpenVPN port; many providers also use 443 to blend in |
| 1433 | TCP | Microsoft SQL Server | Database |
| 1521 | TCP | Oracle Database | Database listener |
| 1701, 1723 | UDP, TCP | L2TP, PPTP | Older VPN protocols; PPTP is obsolete and insecure |
| 1883, 8883 | TCP | MQTT | Messaging for smart-home and IoT devices; 8883 is the TLS version |
| 1900 | UDP | SSDP | UPnP device discovery; the protocol that lets game consoles open ports on your router |
| 2049 | TCP and UDP | NFS | Unix file sharing |
| 3306 | TCP | MySQL / MariaDB | Database |
| 3389 | TCP (and UDP) | RDP | Windows Remote Desktop; constantly scanned, never expose it directly |
| 3478–3481 | UDP and TCP | STUN / TURN | NAT traversal for WebRTC calls and game consoles |
| 5060, 5061 | UDP and TCP | SIP | VoIP call setup; 5061 is the TLS version |
| 5222 | TCP | XMPP | Chat protocol, still used by some messaging apps and push services |
| 5353 | UDP | mDNS | Bonjour and local device discovery (AirPlay, Chromecast, printers) |
| 5432 | TCP | PostgreSQL | Database |
| 5900 | TCP | VNC | Remote screen sharing, including macOS Screen Sharing |
| 6379 | TCP | Redis | Cache and data store; has no password by default |
| 6881–6889 | TCP and UDP | BitTorrent | Traditional peer ports, though clients now pick random ones |
| 8080, 8443 | TCP | HTTP alternate | Proxies, development servers, admin panels and app containers |
| 8006 | TCP | Proxmox | Web console of the Proxmox virtualization platform |
| 9200 | TCP | Elasticsearch | Search engine API; regularly found exposed with no authentication |
| 27017 | TCP | MongoDB | Database |
| 32400 | TCP | Plex | Media server web interface and streaming |
| 51820 | UDP | WireGuard | Conventional WireGuard VPN port; any port works |
The pattern in this range: databases, remote-control tools and admin panels. None of them should face the internet directly. Remote Desktop on 3389 and VNC on 5900 are the two most attacked services on home connections, and an exposed Redis, MongoDB or Elasticsearch with default settings is an open database. If you need to reach any of these from outside, put a VPN (WireGuard on 51820 or OpenVPN on 1194) in front and forward only that one port; What is port forwarding? walks through the setup.
Gaming ports
Consoles and game launchers publish the ports they use so that players with strict NAT can forward them. The lists change, and most modern games work without any forwarding because the console opens what it needs through UPnP. Forward ports only when a NAT type test says you need to.
| Platform | Ports | Notes |
|---|---|---|
| Xbox network | UDP 88, UDP/TCP 3074, UDP/TCP 53, TCP 80, UDP 500, UDP 3544, UDP 4500 | 3074 is the main one; the rest cover DNS, Teredo and IPsec tunneling |
| PlayStation Network (PS5) | TCP 80, 443, 1935, 3478–3480; UDP 3074, 3478–3479 | 3478–3480 are STUN/TURN for voice and matchmaking |
| Nintendo Switch | UDP 1024–65535 | Nintendo's own instruction is to forward the whole range; UPnP or a DMZ entry is the usual alternative |
| Steam client | UDP 27000–27100 (game traffic), UDP 4380, UDP 27031–27036 and TCP 27036 (Remote Play) | Outbound only for normal play; forwarding matters for hosting and Remote Play |
| Source engine servers | UDP and TCP 27015 | Counter-Strike, Team Fortress 2 and similar dedicated servers; 27020 for SourceTV |
| Minecraft | TCP 25565 (Java Edition), UDP 19132 (Bedrock Edition) | The two editions use different ports and different protocols |
| Call of Duty, Fortnite, Rocket League and most live-service games | UDP ranges that change per title and per update | Open NAT via UPnP beats forwarding specific ports; see the NAT guide |
Before forwarding anything, check the result you are trying to change. The NAT type test reports open, moderate or strict NAT and whether your provider uses carrier-grade NAT, in which case no amount of forwarding on your own router helps; What is NAT? explains why. After forwarding, the port checker confirms the port is reachable from the internet, which is the only test that matters.
How to see which ports are open
There are two different questions hiding in "is the port open", and they need different tools.
Is a program listening on my computer? That is a local question. On Windows run netstat -ano | findstr LISTENING in Terminal; on macOS lsof -iTCP -sTCP:LISTEN -n -P; on Linux ss -ltnp. Each line names a port and the process behind it. A port can be listening and still be unreachable from outside, which is the normal state for everything on a home network.
Can the internet reach it? That depends on the router's NAT and firewall as well as the program. The port checker connects to your public address on the port you choose and reports open (something answered), closed (the router or host actively refused) or filtered (no answer at all, usually a firewall dropping the packet). Run it against a port you have forwarded to confirm the rule works, and against 23, 445, 3389 and 5900 to confirm they do not answer.
If you are looking at a port number in a lookup result or a log and want to know what it belongs to, the tables above cover the common cases. For anything else, the IANA service name registry is the authoritative list, and the HTTP headers tool will tell you what is actually answering on a web port, which is often not what the number suggests.
Test it now
Cloudflare edgeRead at the Cloudflare edge from this request. The homepage adds your provider, network type and the VPN, DNS and WebRTC checks.
Show detailsQuestions
What are the most popular ports?
By traffic, 443 (HTTPS) and 80 (HTTP) carry most of the internet, with UDP 443 growing as HTTP/3 spreads. By how often people configure them: 22 (SSH), 53 (DNS), 25, 465 and 587 (sending mail), 110, 143, 993 and 995 (reading mail), 3389 (Remote Desktop), 3306 and 5432 (MySQL and PostgreSQL), and 8080 for anything web-like that is not on 80.
What is the purpose of port numbers in computer networks?
To let one address serve many programs. The IP address delivers a packet to a device; the destination port tells that device which program should receive it, and the source port tells the reply where to go back. Servers listen on agreed numbers so clients can find them, and clients pick random high numbers for their own end, which is how a single machine can hold thousands of connections at once.
Is port 25 TCP or UDP?
TCP. Port 25 is SMTP, the protocol mail servers use to hand messages to each other, and it runs only over TCP because mail delivery needs a reliable, ordered connection. Home internet providers commonly block outbound port 25 to stop infected machines sending spam, which is why mail apps send through port 587 (or 465) to their own provider instead.
What are the different types of ports?
Three ranges: system or well-known ports from 0 to 1023, reserved for standard services and needing administrator rights to bind; user or registered ports from 1024 to 49151, assigned to applications on request; and dynamic or private ports from 49152 to 65535, never assigned and used for the client side of connections. TCP and UDP each have their own full set of 65,536.
Which ports should never be open to the internet?
Anything that gives remote control or raw data access: Telnet (23), SMB (445) and NetBIOS (137–139), Remote Desktop (3389), VNC (5900), and database ports such as 3306, 5432, 1433, 6379, 27017 and 9200. Reach them through a VPN instead. Web ports (80, 443), a VPN port and specific game ports are the normal things to expose from a home network, and only when something is actually listening.