Home network

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
Short answer

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".

One server at 203.0.113.42 with three numbered doors: port 22 for SSH, port 80 for HTTP and port 443 for HTTPS. A request to 203.0.113.42:443 goes to the HTTPS door.Server 203.0.113.42port 80HTTPport 443HTTPSport 22SSHone address, up to 65,535 doorsBrowser203.0.113.42:443address picks the machine,port picks the program
The IP address gets a packet to the right machine. The port number gets it to the right program on that machine.

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:

RangeNameWhat lives there
0–1023System ports (well-known)The standard services: web, mail, DNS, SSH. Binding one needs administrator rights on most systems.
1024–49151User ports (registered)Applications that registered a number: databases, VPNs, games, admin panels
49152–65535Dynamic or private portsNever 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)

PortProtocolServiceWhat it does
20, 21TCPFTPFile transfer: 21 for commands, 20 for data in active mode
22TCPSSHSecure shell, SFTP and SCP file transfer, port forwarding
23TCPTelnetUnencrypted remote login; should never be open to the internet
25TCPSMTPMail transfer between servers; most ISPs block it outbound
53UDP and TCPDNSName lookups; UDP for most queries, TCP for large answers and zone transfers
67, 68UDPDHCPAutomatic address assignment: 67 on the server, 68 on the client
69UDPTFTPTrivial file transfer, used for booting network devices
80TCPHTTPUnencrypted web
88UDP and TCPKerberosAuthentication in Windows domains; also used by Xbox network
110TCPPOP3Downloading mail, unencrypted
123UDPNTPClock synchronization
137–139UDP and TCPNetBIOSLegacy Windows name service and file sharing
143TCPIMAPReading mail on the server, unencrypted
161, 162UDPSNMPDevice monitoring: 161 for queries, 162 for traps
389TCP and UDPLDAPDirectory lookups, including Active Directory
443TCP and UDPHTTPSEncrypted web; UDP 443 carries HTTP/3 (QUIC)
445TCPSMBWindows file and printer sharing; a frequent ransomware entry point when exposed
465TCPSMTPSMail submission over TLS
500, 4500UDPIKE / IPsec NAT-TIPsec VPN negotiation and traversal through NAT
514UDPSyslogLog forwarding
515, 631, 9100TCPLPD, IPP, rawPrinting: IPP on 631 is what AirPrint and CUPS use; 9100 is raw printing on most office printers
587TCPSMTP submissionSending mail from a client to its provider with STARTTLS
636TCPLDAPSLDAP over TLS
853TCP and UDPDNS over TLS / QUICEncrypted DNS, the transport behind Android's Private DNS
993TCPIMAPSIMAP over TLS, the setting most mail apps use
995TCPPOP3SPOP3 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.

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.

PlatformPortsNotes
Xbox networkUDP 88, UDP/TCP 3074, UDP/TCP 53, TCP 80, UDP 500, UDP 3544, UDP 45003074 is the main one; the rest cover DNS, Teredo and IPsec tunneling
PlayStation Network (PS5)TCP 80, 443, 1935, 3478–3480; UDP 3074, 3478–34793478–3480 are STUN/TURN for voice and matchmaking
Nintendo SwitchUDP 1024–65535Nintendo's own instruction is to forward the whole range; UPnP or a DMZ entry is the usual alternative
Steam clientUDP 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 serversUDP and TCP 27015Counter-Strike, Team Fortress 2 and similar dedicated servers; 27020 for SourceTV
MinecraftTCP 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 gamesUDP ranges that change per title and per updateOpen 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 edge
IP websites see216.73.216.52
LocationColumbus, United States
Internet providerAnthropic, PBC

Read at the Cloudflare edge from this request. The homepage adds your provider, network type and the VPN, DNS and WebRTC checks.

Show details

Questions

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.

Sources and further reading

  1. RFC 6335: IANA port number procedures (port ranges)
  2. Service Name and Transport Protocol Port Number Registry (IANA)
  3. How to set up a router's port forwarding for a Nintendo Switch console (Nintendo Support)
CheckMyIP Team
Network engineers and privacy researchers