TMWTMW Global NetworksTMW Global Networks
Network knowhow

TCP & UDP Ports Explained

Ports are the doors packets use to reach applications.

Every TCP and UDP packet carries source and destination port numbers (0–65535). Firewalls, DDoS filters and service hardening all start with knowing which ports should be open - and which should not.

8 min read

Talk to engineeringView TMW Shield
01

What are ports?

When two hosts communicate over IP, the operating system must deliver each packet to the correct application. Port numbers identify that application endpoint. A web server listening on port 443 receives HTTPS traffic; SSH listens on port 22.

Ports 0–1023 are well-known and assigned by IANA. Ports 1024–49151 are registered for specific services. Ports 49152–65535 are dynamic/ephemeral - browsers and clients use these temporarily.

02

TCP vs UDP ports

TCP ports belong to connection-oriented sessions with handshakes and retransmissions - HTTP, SSH, SMTP. UDP ports are connectionless - DNS, NTP, QUIC, and most game protocols.

Many DDoS attacks target UDP because stateless handling is cheaper to flood. TCP attacks often abuse SYN floods or slow connections on ports 80/443. Good protection profiles ports separately.

Well-known, registered and gaming ports

The tables below list the ports operators see most often on hosting, transit and gaming networks. Use them when writing firewall rules, documenting services or explaining filter policy to customers.

PortTCPUDPNameDescription
20✓-ftp-dataFTP data transfer
21✓✓ftpFTP control channel
22✓✓sshSecure Shell remote access
23✓-telnetUnencrypted remote terminal
25✓-smtpSimple Mail Transfer Protocol
53✓✓dnsDomain name resolution
67-✓dhcp-serverDHCP server (BOOTP)
68-✓dhcp-clientDHCP client
69-✓tftpTrivial File Transfer Protocol
80✓-httpHypertext Transfer Protocol
110✓-pop3Post Office Protocol v3
123-✓ntpNetwork Time Protocol
143✓✓imapInternet Message Access Protocol
161-✓snmpSimple Network Management Protocol
179✓-bgpBorder Gateway Protocol
443✓-httpsHTTP over TLS
465✓-smtpsSMTP over TLS (legacy)
587✓-submissionMail submission (STARTTLS)
993✓-imapsIMAP over TLS
995✓-pop3sPOP3 over TLS

Ports 0–1023 are well-known and typically require elevated privileges on Unix systems. IANA assigns official service names.

Registered service ports

PortTCPUDPNameDescription
1080✓-socksSOCKS proxy
1433✓-mssqlMicrosoft SQL Server
3306✓✓mysqlMySQL / MariaDB
3389✓-rdpRemote Desktop Protocol
5432✓-postgresqlPostgreSQL database
6379✓-redisRedis in-memory store
8080✓-http-altCommon alternate HTTP
8443✓-https-altCommon alternate HTTPS
27017✓-mongodbMongoDB default

Common gaming & voice ports

PortTCPUDPNameDescription
25565✓✓minecraftMinecraft Java server
27015✓✓source-engineCounter-Strike / Source games
30120✓✓fivemFiveM (GTA V multiplayer)
7777✓✓unrealUnreal Engine / ARK (common)
9987-✓teamspeak3TeamSpeak 3 voice
19132-✓minecraft-bedrockMinecraft Bedrock
2456✓✓valheimValheim (common default)
28015✓✓rustRust game server

Game ports vary by host and mod - these are common defaults frequently targeted in UDP floods and amplification attacks.

Port FAQ

Can two services share the same port?

On one IP address, only one process can bind a given port per protocol (TCP/UDP). Different IPs or NAT can reuse numbers. Load balancers terminate connections and forward internally.

Why do DDoS attacks target random high ports?

Attackers probe ephemeral client ports or abuse reflection on UDP services (DNS/NTP) to amplify traffic toward a victim port. Filters match expected service ports and drop everything else.

Should I close all ports except what I need?

Yes - minimum exposure is best practice. Allow only required TCP/UDP ports at edge firewalls and scrubbing policy. Document exceptions for panels, RCON and voice services.

Need port-aware DDoS filtering?

TMW Shield ships protocol profiles for web, mail, DNS, BGP and 20+ game services - tuned per port, not one generic UDP rule.

Talk to engineeringView TMW Shield
TMW Global Networks

Carrier-grade DDoS protection, IP transit, and hosting for networks that need direct operational support.

All systems operational

Hosting

  • Dedicated Servers
  • Cloud VPS
  • KVM Server
  • IP-Transit
  • Network
  • BGP Communities
  • Colocation

Services

  • TMW Shield
  • TMW CDN / Proxy
  • On-Prem
  • Filter Profiles
  • Status page

Guides

  • Guides
  • FAQ
  • Attack Reports
  • Case Studies
  • What is a Cloud Server?
  • What is a VPS?
  • What is DDoS Protection?
  • TCP & UDP Ports Explained
  • TCP/IP Explained

Company

  • Solutions
  • About
  • DDoS Frankfurt
  • abuse@t-w.dev
  • noc@t-w.dev
  • Contact
  • Under Attack?

© 2026 TMW Global Networks. All rights reserved.

ImprintPrivacyTermsTMW Shield Terms