Skip to content
Free tool

Common Ports & firewall commands: Look up and open ports

Look up common ports, well-known ports and other network ports: enter a port number, range, service such as SSH, or game such as FiveM. The tool shows the service, TCP or UDP, IANA status, and whether the port should be exposed to the internet. It also generates ready-to-use firewall commands for ufw, iptables, nftables, firewalld and Windows to open the port. Free, no sign-up, right in your browser.

Built by Justin Schuessler

Try the commands on your own VPS, with root access and your own firewall.

Add multiple ports one at a time, up to 12.

Or choose a preset

Ports

80/TCPHTTP

Web · Well-known port · OSI layer 7

Unencrypted websites. Today, mainly needed for redirects to HTTPS and Let’s Encrypt validation (HTTP-01).

IANA: officially registered as http

More about port 80

443/TCPHTTPS

Web · Well-known port · OSI layer 7

Encrypted websites and APIs over TLS. HTTP/3 also uses UDP 443 (QUIC), so allow UDP as well.

IANA: officially registered as https

More about port 443

Firewall rule (inbound)

Firewall commands

Open port

sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
Check port
Notes on ufw

For Ubuntu and Debian. ufw creates the rule for both IPv4 and IPv6. If ufw is disabled, allow SSH first (sudo ufw allow 22/tcp), then enable it with sudo ufw enable, or you'll lock yourself out.

On a ZAP-Hosting VPS with an active network firewall, you also need to allow the port in the Customer Panel.

Why this tool

From port to ready-to-use firewall rule

Don't just look up a port—open it: from the port number and port card to a ready-to-use command for your firewall.

Five firewalls

ufw, iptables, nftables, firewalld and Windows Firewall via PowerShell, with correct syntax for individual ports and ranges.

Allow access from one IP only

Enter an IP address or network instead of “anywhere,” for example for databases or RDP. Your input will be validated.

Check now

“Check port” opens the port checker with your ports so you can immediately see whether the firewall rule works.

Port card with security notice

See the service, TCP or UDP, IANA status, port range, and OSI layer at a glance, with a warning if a port shouldn't be open to the internet.

Presets for common setups

Web Server, Mail Server, SSH, Minecraft, FiveM, TeamSpeak, Steam Game Server and Database load the appropriate ports with one click.

Close again and share

The tool can also show commands to close the port again, and “Share link” copies a link to your setup.

How it works

How to open a port in your firewall

No account or download needed—use it right in your browser.

Step 1

Enter a port, service, or game

Enter a port number like 443, a range like 27015-27030, a service like SSH or a game like Minecraft, or choose a preset like Web Server, FiveM or Database. A setup can contain up to 12 ports or ranges.

Step 2

Read a port card

The port card shows the service, TCP or UDP, IANA status, port range, and OSI layer, and warns you if a port shouldn't be open to the internet. You can change the protocol for each port.

Step 3

Choose firewall

Choose ufw, iptables, nftables, firewalld or Windows Firewall via PowerShell. The commands update immediately.

Step 4

Set source

Leave the source set to “Anywhere” or choose “Specific IP” and enter an IPv4 or IPv6 address or a network in CIDR notation, for example for databases or RDP.

Step 5

Copy commands

Copy the commands with “Copy all” and run them on the server. For iptables, a command to save the rules permanently is included. The tool can also show commands to close the port again.

Step 6

Check port

Click “Check port” to test whether the port is reachable from outside using the port checker, or share your setup with “Share link”.

Firewall commands

Open ports with ufw, iptables, nftables, firewalld, and Windows

These are the commands the tool generates for HTTPS on port 443/TCP when the source is set to “Anywhere”. The tool above builds the appropriate commands for your ports, ranges and source IPs.

ufw

Ubuntu and Debian

sudo ufw allow 443/tcp

iptables

Linux without a frontend, with ip6tables for IPv6

sudo iptables -I INPUT -p tcp --dport 443 -j ACCEPT
sudo ip6tables -I INPUT -p tcp --dport 443 -j ACCEPT
sudo netfilter-persistent save

nftables

inet filter table with the input chain

sudo nft insert rule inet filter input tcp dport 443 accept

firewalld

Rocky Linux, AlmaLinux, RHEL and Fedora

sudo firewall-cmd --permanent --add-port=443/tcp
sudo firewall-cmd --reload

Windows

PowerShell as administrator

New-NetFirewallRule -DisplayName "Port 443 TCP (HTTPS)" -Direction Inbound -Protocol TCP -LocalPort 443 -Action Allow

Basics

Port numbers and port ranges, TCP and UDP

The three port ranges

  • 0–1023 Well-known Ports for standard services such as SSH, HTTP and DNS
  • 1024–49151 Registered Ports, including MySQL, RDP and many game servers
  • 49152–65535 dynamic ports for outbound connections

TCP or UDP?

TCP establishes a connection and guarantees delivery: web, email, SSH, databases. UDP sends without a connection and is faster: DNS, voice, most games. 53/TCP and 53/UDP require separate rules.

Open only necessary ports

  • Block all inbound traffic, then allow only what you need.
  • Restrict admin access and database access to your IP or use a VPN.
  • Replace Telnet and FTP with SSH and SFTP.

Port list

Common ports list: key TCP and UDP ports

Search the list by port number or service, filter by TCP, UDP, or category, or switch to IANA-assigned ports. Click “Use in tool” to add the port.

Category

68 entries

PortServiceCategoryAction
20/TCPFTP (Daten)File transfer
21/TCPFTPFile transfer
22/TCPSSHRemote access
23/TCPTelnetRemote access
25/TCPSMTPEmail
53/TCP+UDPDNSNetwork services
67/UDPDHCP (Server)Network services
68/UDPDHCP (Client)Network services
69/UDPTFTPNetwork services
80/TCPHTTPWeb
110/TCPPOP3Email
123/UDPNTPNetwork services
143/TCPIMAPEmail
161/UDPSNMPNetwork services
162/UDPSNMP-TrapNetwork services
389/TCPLDAPNetwork services
443/TCPHTTPSWeb
445/TCPSMBFile transfer
465/TCPSMTPS (Submission ĂĽber TLS)Email
500/UDPIPsec (IKE)VPN
514/UDPSyslogNetwork services
587/TCPSMTP SubmissionEmail
636/TCPLDAPSNetwork services
873/TCPrsyncFile transfer
993/TCPIMAPSEmail
995/TCPPOP3SEmail
1194/UDPOpenVPNVPN
1433/TCPMicrosoft SQL ServerDatabases
2049/TCP+UDPNFSFile transfer
2302/UDPDayZGame Server
2375/TCPDocker API (unverschlĂĽsselt)Server management
2376/TCPDocker API (TLS)Server management
2456-2457/UDPValheimGame Server
3000/TCPGrafanaServer management
3306/TCPMySQL / MariaDBDatabases
3389/TCPRDPRemote access
4500/UDPIPsec NAT-TraversalVPN
5432/TCPPostgreSQLDatabases
5520/UDPHytaleGame Server
5900/TCPVNCRemote access
6379/TCPRedisDatabases
6443/TCPKubernetes APIServer management
7777/TCP+UDPARK, Conan Exiles, SatisfactoryGame Server
8006/TCPProxmox VE (Weboberfläche)Server management
8080/TCPHTTP-AlternativeWeb
8211/UDPPalworldGame Server
8443/TCPHTTPS-AlternativeWeb
9090/TCPPrometheusServer management
9200/TCPElasticsearchDatabases
9987/UDPTeamSpeak 3 (Voice)Voice
10000/TCPWebminServer management
10011/TCPTeamSpeak 3 (ServerQuery)Voice
11211/TCPMemcachedDatabases
15637/UDPEnshroudedGame Server
16261-16262/UDPProject ZomboidGame Server
19132/UDPMinecraft (Bedrock Edition)Game Server
25565/TCPMinecraft (Java Edition)Game Server
26900/TCP+UDP7 Days to DieGame Server
27015/TCP+UDPSteam/Source-GameserverGame Server
27017/TCPMongoDBDatabases
27020/UDPSourceTV / GOTVGame Server
28015/UDPRustGame Server
30033/TCPTeamSpeak 3 (Dateitransfer)Voice
30120/TCP+UDPFiveM / RedMGame Server
34197/UDPFactorioGame Server
40120/TCPtxAdmin (FiveM/RedM-Panel)Game Server
51820/UDPWireGuardVPN
64738/TCP+UDPMumbleVoice

Port list source: IANA Service Name and Transport Protocol Port Number Registry, as of October 22, 2026. iana.org

Discover more

More tools

FAQ

Frequently asked questions

Quick answers about ports, TCP and UDP, and firewall rules.

Each port gets a card showing its service, TCP or UDP, IANA status, port range and OSI layer, with a security warning for sensitive ports, plus ready-to-use commands for five firewalls. For a FiveM server using ufw, for example: sudo ufw allow 30120/tcp, sudo ufw allow 30120/udp. Then click “Check port” to test whether the port is reachable from outside.

Well-known Ports (System Ports) are port numbers 0 to 1023. IANA assigns them to common standard services such as SSH (22), HTTP (80) and HTTPS (443). On Linux, a service on these ports needs root privileges or the CAP_NET_BIND_SERVICE capability by default. Above them are the Registered Ports (1024 to 49151) and dynamic ports (49152 to 65535).

For running servers and networking exams such as CompTIA Network+ or the German IHK exam, the key ports are: 20/21 FTP, 22 SSH, 23 Telnet, 25 SMTP, 53 DNS, 67/68 DHCP, 80 HTTP, 110 POP3, 123 NTP, 143 IMAP, 161 SNMP, 389 LDAP, 443 HTTPS, 445 SMB, 465 and 587 for sending email, 993 IMAPS, 995 POP3S, 1433 Microsoft SQL Server, 3306 MySQL, 3389 RDP, 5432 PostgreSQL, and 8080 as the alternative HTTP port. In total, port numbers range from 0 to 65535, separately for TCP and UDP. The port list below the tool shows the most important ports by category and can switch to IANA-assigned ports.

TCP establishes a connection before transmitting and ensures everything arrives complete and in the correct order, for example with websites, email and SSH. UDP sends packets without establishing a connection or checking delivery. That makes it faster and well suited to DNS queries, voice and games. A firewall rule applies to only one protocol, so a service like FiveM needs two rules.

It depends on the firewall: Ubuntu and Debian usually use ufw (sudo ufw allow 443/tcp), while Rocky Linux, AlmaLinux, and RHEL use firewalld (sudo firewall-cmd --permanent --add-port=443/tcp followed by --reload). Without a frontend, you use iptables or nftables directly. The tool generates commands for all four firewalls, including for a port range or a specific IP only.

The quickest way is to run New-NetFirewallRule in PowerShell as an administrator, for example New-NetFirewallRule -DisplayName “Port 443 TCP” -Direction Inbound -Protocol TCP -LocalPort 443 -Action Allow. You can remove the rule with Remove-NetFirewallRule and the same name. The tool generates both commands for you.

On the server, sudo ss -tulpn shows which service is listening on which port. To test whether the port is reachable from outside, use the port checker: the “Check port” button opens it with your ports. If a port is closed, the service isn’t running, is listening only on localhost or is blocked by a firewall.

Databases (3306, 5432, 6379, 27017), Remote Desktop (3389), Windows file shares (445), the Docker API (2375) and admin interfaces should not be publicly accessible. Allow access only from a specific IP address, or use a VPN or SSH tunnel. Telnet (23) and FTP (21) transmit passwords in plain text and have been replaced by SSH and SFTP.

Yes. Set the source to “Specific IP” and enter an IPv4 or IPv6 address or a network in CIDR notation, such as 203.0.113.10 or 198.51.100.0/24. The tool validates your input and includes the address in the rules: as from … to any port for ufw, with -s for iptables, with saddr for nftables, as a rich rule for firewalld, and with -RemoteAddress for Windows. The “Database” preset automatically sets the source to “Specific IP”.

Turn on “Show commands to close ports again”: ufw removes the rule with sudo ufw delete allow, iptables uses -D instead of -I, firewalld uses --remove-port or --remove-rich-rule and --reload, and Windows uses Remove-NetFirewallRule with the same name. For nftables, display the chain with sudo nft -a list chain inet filter input and delete the rule by its handle number. To make rules persistent, save iptables rules with sudo netfilter-persistent save (iptables-persistent package); firewalld uses --permanent, and nftables rules must be in /etc/nftables.conf.

Any more questions?

Contact Support
Your own server?

Try the commands on your own VPS

With a ZAP-Hosting VPS, you have root access, can set up services and firewall rules yourself, and can immediately see which ports are open.

4.4/5 Trustpilot32,000+ Active serversSince 2010

No setup. No risk. Online in seconds.

Flexible TermCancel anytimeOnline in 60 seconds

Looking for more tools? View all network tools