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:
| Range | Name | Purpose |
|---|---|---|
| 0–1023 | Well-known (system) ports | Core internet services such as HTTP, SSH and DNS. On Linux and macOS, binding to these traditionally requires administrator privileges. |
| 1024–49151 | Registered (user) ports | Assigned by IANA to specific applications on request, such as databases and VPNs. |
| 49152–65535 | Dynamic (private or ephemeral) ports | Never 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
| Port | Protocol | Service | Notes |
|---|---|---|---|
| 20, 21 | TCP | FTP | 21 for commands, 20 for data in active mode. Unencrypted; prefer SFTP. |
| 22 | TCP | SSH, SFTP, SCP | Encrypted remote shell and file transfer. |
| 23 | TCP | Telnet | Unencrypted remote login. Should not be exposed to the internet. |
| 25 | TCP | SMTP | Server-to-server email relay. Often blocked outbound on residential connections. |
| 53 | TCP/UDP | DNS | UDP for most queries, TCP for large responses and zone transfers. |
| 67, 68 | UDP | DHCP | 67 for the server, 68 for the client. Hands out IP addresses on a LAN. |
| 80 | TCP | HTTP | Unencrypted web traffic; most sites redirect it to HTTPS. |
| 110 | TCP | POP3 | Downloading email, unencrypted. |
| 123 | UDP | NTP | Network Time Protocol for clock synchronisation. |
| 143 | TCP | IMAP | Reading email on the server, unencrypted or with STARTTLS. |
| 161 | UDP | SNMP | Network device monitoring (traps use 162). |
| 389 | TCP/UDP | LDAP | Directory services such as Active Directory. |
| 443 | TCP/UDP | HTTPS | Encrypted web traffic. UDP 443 carries HTTP/3 over QUIC. |
| 445 | TCP | SMB | Windows file and printer sharing. Never expose to the internet. |
| 465 | TCP | SMTP submission (implicit TLS) | Sending mail from a client with TLS from the start. |
| 587 | TCP | SMTP submission (STARTTLS) | Sending mail from a client, upgraded to TLS. |
| 993 | TCP | IMAPS | IMAP over TLS. |
| 995 | TCP | POP3S | POP3 over TLS. |
| 1194 | UDP (or TCP) | OpenVPN | Default OpenVPN port. |
| 1433 | TCP | Microsoft SQL Server | Database; keep internal. |
| 3306 | TCP | MySQL / MariaDB | Database; keep internal. |
| 3389 | TCP/UDP | RDP | Windows Remote Desktop. A frequent target of brute-force attacks. |
| 5432 | TCP | PostgreSQL | Database; keep internal. |
| 5900 | TCP | VNC | Remote desktop sharing (5901 and up for additional displays). |
| 6379 | TCP | Redis | In-memory data store; keep internal. |
| 8080 | TCP | HTTP alternate | Web proxies, application servers and development servers. |
| 25565 | TCP | Minecraft (Java Edition) | Default game server port. Bedrock Edition uses UDP 19132. |
| 27017 | TCP | MongoDB | Database; keep internal. |
| 51820 | UDP | WireGuard | Common 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:
- 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.
- 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.
- Allow the port through the firewall on the device itself.
- Make sure the service is running and listening on that port.
- Test from outside your network.
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.
Comentarios
Comparte un consejo, haz una pregunta o cuenta cómo te funcionó la herramienta.