Skip to main content
Knowing which ports correspond to which services is fundamental to IT troubleshooting and network administration. Whether you are configuring a firewall rule, diagnosing a connectivity failure, investigating a security incident, or provisioning a new server, this reference gives you the port numbers, protocols, and service descriptions you need in one place. All ports listed here are well-known (0–1023) or registered (1024–49151) ports as defined by the Internet Assigned Numbers Authority (IANA).

Email Ports

Email relies on a collection of protocols for sending and receiving messages between servers and clients. Understanding the differences — particularly between the deprecated plain-text ports and their secure TLS equivalents — is essential for email configuration and security hardening.
In Microsoft 365 and Google Workspace environments, standard SMTP relay uses port 587 with TLS and modern authentication. Port 25 is used exclusively for server-to-server relay. If users cannot send email, first check whether port 587 is open and not blocked by a local firewall or ISP.

Web Ports


Remote Access Ports

Exposing RDP (port 3389) directly to the internet is one of the most common vectors for ransomware attacks. Always place RDP behind a VPN, an RD Gateway, or restrict by IP allowlist. Enable Network Level Authentication (NLA) as a minimum protection.

Directory Services Ports

Directory services ports are critical in Active Directory and LDAP environments. Firewall rules for domain controllers, application servers, and client devices must permit these ports.
Microsoft’s guidance for Active Directory firewall port requirements is detailed at https://docs.microsoft.com/en-us/troubleshoot/windows-server/identity/config-firewall-for-ad-domains-and-trusts. In addition to the ports above, RPC dynamic ports (49152–65535) are required for domain controller communication unless the RPC port range is restricted via registry.

File Sharing Ports


VPN Ports


Other Common Ports

Use netstat -ano (Windows) or ss -tulnp (Linux) to see which ports are currently open and listening on a system. Cross-reference against this table to identify any unexpected services.