Common Network Ports and What They Are Used For

A port is just a number, 0 through 65535, that says which service on a device should get this particular bit of incoming traffic — 443 for an HTTPS site, 22 for SSH, and so on. Below: the ports you'll actually run into, what's listening on each, and how to check and lock them down.

What a port is

An IP address gets your data to the right device. A port is what gets it to the right program once it's there. One server can quite happily run a website, a mail service and a database all at once, each one parked on its own port, listening. What actually identifies a connection is the whole combination — source IP, source port, destination IP, destination port, protocol — which is exactly how your laptop juggles dozens of browser tabs and apps talking to the internet simultaneously without any of them getting each other's data mixed up.

Ports ride on a transport protocol, and that's almost always TCP or UDP:

  • TCP sets up an actual connection, delivers everything in order, and retransmits whatever got lost along the way. Web pages, email, file transfers, remote logins — all TCP.
  • UDP just fires off individual datagrams, no connection, no delivery guarantee, and that's exactly why it keeps latency low. DNS queries, voice and video calls, online games, and newer stuff like QUIC all lean on it.

Worth knowing: TCP port 53 and UDP port 53 are technically two entirely separate ports, even though a given service will often use both at once.

Port number ranges

Port numbers are 16-bit values — 0 to 65535, nothing more. IANA splits that whole range into three buckets:

RangeNamePurpose
0–1023Well-known (system) portsCore internet services such as HTTP, SSH and DNS. On Linux and macOS, binding to these traditionally requires administrator privileges.
1024–49151Registered (user) portsAssigned by IANA to specific applications on request, such as databases and VPNs.
49152–65535Dynamic (private or ephemeral) portsNever assigned; used temporarily by clients for outgoing connections.

When your browser hits a site on port 443, your end of that connection is using a throwaway ephemeral port you never see. Windows defaults to IANA's own dynamic range for these; Linux, by default, uses 32768–60999 instead. And here's a quirk worth knowing: plenty of popular apps use ports that were never formally registered with IANA at all — they're just widely recognised by convention, full stop.

Common ports reference table

PortProtocolServiceNotes
20, 21TCPFTP21 for commands, 20 for data in active mode. Unencrypted; prefer SFTP.
22TCPSSH, SFTP, SCPEncrypted remote shell and file transfer.
23TCPTelnetUnencrypted remote login. Should not be exposed to the internet.
25TCPSMTPServer-to-server email relay. Often blocked outbound on residential connections.
53TCP/UDPDNSUDP for most queries, TCP for large responses and zone transfers.
67, 68UDPDHCP67 for the server, 68 for the client. Hands out IP addresses on a LAN.
80TCPHTTPUnencrypted web traffic; most sites redirect it to HTTPS.
110TCPPOP3Downloading email, unencrypted.
123UDPNTPNetwork Time Protocol for clock synchronisation.
143TCPIMAPReading email on the server, unencrypted or with STARTTLS.
161UDPSNMPNetwork device monitoring (traps use 162).
389TCP/UDPLDAPDirectory services such as Active Directory.
443TCP/UDPHTTPSEncrypted web traffic. UDP 443 carries HTTP/3 over QUIC.
445TCPSMBWindows file and printer sharing. Never expose to the internet.
465TCPSMTP submission (implicit TLS)Sending mail from a client with TLS from the start.
587TCPSMTP submission (STARTTLS)Sending mail from a client, upgraded to TLS.
993TCPIMAPSIMAP over TLS.
995TCPPOP3SPOP3 over TLS.
1194UDP (or TCP)OpenVPNDefault OpenVPN port.
1433TCPMicrosoft SQL ServerDatabase; keep internal.
3306TCPMySQL / MariaDBDatabase; keep internal.
3389TCP/UDPRDPWindows Remote Desktop. A frequent target of brute-force attacks.
5432TCPPostgreSQLDatabase; keep internal.
5900TCPVNCRemote desktop sharing (5901 and up for additional displays).
6379TCPRedisIn-memory data store; keep internal.
8080TCPHTTP alternateWeb proxies, application servers and development servers.
25565TCPMinecraft (Java Edition)Default game server port. Bedrock Edition uses UDP 19132.
27017TCPMongoDBDatabase; keep internal.
51820UDPWireGuardCommon default listening port for WireGuard VPNs.

None of this is enforced anywhere, worth remembering. These are conventions, not rules — any service can be pointed at any port it likes, so traffic on 443 isn't actually guaranteed to be HTTPS, and a database shoved onto some unusual port is still, stubbornly, a database.

Port forwarding explained

Most home networks sit behind a router doing network address translation (NAT): every device in the house shares one public IP, and any incoming connection nobody asked for just gets dropped, because the router has no idea which device it's even for. Good for security, as a side effect — less good the moment you actually want to host a game server, a security camera feed, or some home lab project.

Port forwarding is just a router rule saying "send incoming traffic on this external port to this specific internal device and port." Setting one up:

  1. Give the target device a fixed private address, ideally with a DHCP reservation in the router. If its address changes, the rule will point at the wrong device. Our article on public vs private IP addresses explains why this matters.
  2. In the router's admin page, find the port forwarding (sometimes "virtual server" or "NAT") section and add a rule with the external port, internal IP, internal port and protocol.
  3. Allow the port through the firewall on the device itself.
  4. Make sure the service is running and listening on that port.
  5. Test from outside your network.
Note: If your ISP uses carrier-grade NAT (CGNAT), your router does not have a true public IP address and port forwarding will not work from the internet. A quick sign is when the WAN address in your router's status page differs from the public IP shown on the What's My IP Number page, especially if it starts with 100.64 to 100.127.

How to check whether a port is open

From the internet

Our Open Port Checker tells you whether a TCP port on your own connection is actually reachable from outside. It only ever tests the public IP you're visiting from, never some arbitrary host — that's deliberate, to stop the tool being misused. Getting "closed" back usually means one of: the service isn't running, the port forward is missing or pointed at the wrong device, a firewall's in the way, or your ISP has you on CGNAT or is just blocking that port outright.

From your own computer

Want to see what your own machine is listening on? Run one of these:

# Linux
ss -tulpn

# macOS
lsof -nP -iTCP -sTCP:LISTEN

# Windows
netstat -ano

To test a connection to a specific host and port:

# macOS / Linux
nc -zv example.com 443

# Windows PowerShell
Test-NetConnection example.com -Port 443

Anything listening only on 127.0.0.1 simply isn't reachable from any other device, full stop — what localhost is explains exactly why.

Port security tips

  • Expose as little as you can get away with. Every open port is one more way in. If you're not using a forwarding rule, kill it.
  • Keep remote-access ports off the public internet. RDP (3389), SMB (445), Telnet (23), VNC (5900), and anything database-related get scanned constantly, around the clock. Put a VPN in front of them instead of opening them up directly.
  • Reach for encrypted protocols by default. SSH over Telnet, SFTP over FTP, TLS variants over plain mail protocols — every time.
  • Don't fool yourself that changing the port number is security. Moving SSH off 22 cuts down the noise from automated scanners in your logs, sure — but that's all it does. Keys, strong passwords and rate limiting are the actual protection.
  • Turn off UPnP if you don't need it. Left on, it lets anything on your network open router ports on its own, without so much as asking you first.

Running a web server? Worth also checking what it's actually sending back on 80 and 443 with the HTTP Headers Checker.

Frequently asked questions

How many ports are there?

65,536 for TCP (0 through 65535), and another full 65,536 for UDP, separately. Port 0 itself is reserved — nothing actually uses it for a normal connection.

Is it dangerous to have open ports?

Only as dangerous as whatever's actually running behind it. A fully patched web server on 443? Completely normal. An ancient, unpatched remote desktop or database facing the open internet? That's a real problem.

Why does the port checker say my port is closed when my server is running?

Usually one of: the port forward's missing or wrong, a firewall on the device itself is blocking it, the service only listens on localhost, or your ISP is blocking the port or has you behind CGNAT. Work through each one.

Which port does HTTPS use?

TCP port 443, by default. HTTP/3 also rides on 443, just over UDP instead, using QUIC.

Kendiniz deneyin

Bu rehberi ücretsiz araçlarımızla uygulamaya geçirin.

Yorumlar

Bir ipucu paylaşın, soru sorun ya da aracın işinize nasıl yaradığını anlatın.

Okumaya devam edin

Panoya kopyalandı