List of Open Ports on Network Devices: Standard Services
In this article
This list identifies the standard open ports used by network devices to communicate with other systems, categorized by protocol and function. Use it as a reference to verify that your firewall rules allow necessary traffic while blocking unauthorized access.
Core Internet Protocols
The most critical ports are those that facilitate basic connectivity and data exchange across the internet. These services must be open for standard web browsing, email transmission, and domain resolution to function correctly.
1. Port 80 (HTTP)
This is the default port for unencrypted web traffic. When you type a URL into your browser without specifying https://, the device attempts to connect here. It sends data in plain text, meaning any intermediate node can read the content. For modern security standards, this port should redirect all traffic to port 443, but it remains open to accept the initial request.
2. Port 443 (HTTPS)
Secure websites use this port to establish encrypted connections between the client and the server. All data transmitted through port 443 is wrapped in TLS (Transport Layer Security) or SSL (Secure Sockets Layer), preventing eavesdropping. This is the standard port for banking, login pages, and sensitive API calls.
3. Port 53 (DNS)
DNS operates over both UDP and TCP, though UDP is preferred for speed in simple lookups. When a device needs to resolve a domain name like example.com to an IP address, it queries port 53 on the configured DNS server. If this port is blocked, devices cannot translate names to addresses, effectively breaking internet access even if the connection itself is active.
4. Port 22 (SSH)
Secure Shell provides an encrypted channel for remote administration of network devices. Unlike older protocols such as Telnet, SSH encrypts the entire session, including passwords and commands. System administrators rely on this port to manage servers, routers, and switches securely from a distance. It should never be exposed to the public internet without strict access controls.
Email Infrastructure Ports
Email services require specific ports for sending messages and retrieving them from mailboxes. Misconfiguring these ports often results in delivery failures or security vulnerabilities.
5. Port 25 (SMTP)
Simple Mail Transfer Protocol uses this port to relay email messages between mail servers. While many clients use submission ports for sending, servers use port 25 to talk to each other. It is frequently targeted by spam bots, so open firewalls must implement rate limiting and authentication checks on this port.
6. Port 587 (SMTP Submission)
This port is designated for email clients to submit messages to a mail server for processing. Unlike port 25, which is for server-to-server relay, port 587 requires authentication. This ensures that only authorized users can send emails through the server, reducing the risk of the server being used as an open relay for spam.
7. Port 993 (IMAPS)
Internet Message Access Protocol Secure allows users to retrieve emails from a server while keeping them stored there. By using port 993, the connection is encrypted via TLS. This is the recommended setting for modern email clients, ensuring that password and message contents remain private during retrieval.
8. Port 995 (POP3S)
Post Office Protocol Version 3 Secure downloads emails to the local device and typically deletes them from the server after retrieval. Like IMAPS, it uses port 995 for encrypted communication. This is useful for users who prefer to store all correspondence locally rather than syncing across multiple devices.
Network Management and Maintenance
These ports are essential for monitoring network health, synchronizing time, and managing file transfers within secure environments.
9. Port 161/162 (SNMP)
Simple Network Management Protocol uses UDP port 161 for agents to report status to management stations and port 162 for traps (alerts). This allows administrators to monitor device uptime, CPU load, and interface errors. Because SNMP v1 and v2c transmit community strings in clear text, v3 is required for encrypted authentication and privacy.
10. Port 123 (NTP)
Network Time Protocol synchronizes the clocks of network devices to ensure accurate logging and certificate validation. Without synchronized time, security certificates may appear expired, and forensic logs become difficult to correlate. NTP primarily uses UDP port 123, though TCP is supported for some implementations.
11. Port 21 (FTP)
File Transfer Protocol uses port 21 for control commands and a dynamic range of ports for data transfer. FTP sends credentials and data in plaintext, making it vulnerable to sniffing attacks. It should be replaced with SFTP (SSH File Transfer Protocol) or FTPS whenever possible. If FTP must be used, it should be restricted to internal networks only.
12. Port 20/21 (FTP Data)
While port 21 handles the command channel, port 20 is traditionally used for active mode data transfer. In active mode, the server initiates the connection back to the client on this port. Modern firewalls often struggle with this dynamic behavior, leading to the preference for passive mode, which uses a higher random port range instead.
Database and Remote Access Services
Internal services often require open ports for application communication. These should rarely be exposed outside the local network segment.
13. Port 3389 (RDP)
Remote Desktop Protocol allows graphical control of a Windows machine over a network. It transmits screen updates and input events efficiently. RDP is a common target for brute-force attacks and ransomware propagation. If exposed, it must be protected by Network Level Authentication and ideally a VPN gateway.
14. Port 3306 (MySQL)
MySQL databases listen on this port for incoming query requests. Application servers connect here to read or write data. Exposing this port to the public internet is a critical security error, as it allows direct interaction with the database engine. It should be bound to localhost or a private VLAN.
15. Port 5432 (PostgreSQL)
Similar to MySQL, PostgreSQL uses this port for client connections. It supports advanced data types and concurrent transactions. Like other database ports, it requires strong authentication mechanisms and network isolation to prevent unauthorized data extraction.
16. Port 636 (LDAPS)
Lightweight Directory Access Protocol Secure uses this port for encrypted directory services. Active Directory and LDAP directories store user credentials and group policies. LDAPS ensures that authentication queries are not intercepted. It is essential for centralized identity management in enterprise environments.
Verification and Safety Checklist
Before opening any port on a network device, verify that the service is necessary and secured. An open port is an entry point; ensure it is locked down appropriately.
- Identify the Service: Confirm exactly what software listens on the port. Do not leave ports open "just in case" without knowing the associated process.
- Restrict Source IPs: Configure firewalls to allow traffic only from known, trusted IP addresses or subnets. Avoid allowing
0.0.0.0/0(any source) unless absolutely required. - Use Encryption: Prefer secure variants of protocols (e.g., HTTPS over HTTP, SSH over Telnet, LDAPS over LDAP). Unencrypted ports expose sensitive data.
- Change Defaults: Where possible, change default ports for administrative services to reduce automated scanning noise. Note that this is obscurity, not security, and does not replace proper access controls.
- Monitor Traffic: Enable logging on firewall rules associated with these ports. Review logs regularly for unusual spikes or failed connection attempts.
- Test Connectivity: Use tools like
nmaportelnetto verify that the port is accessible from intended sources and blocked from unintended ones.
Troubleshooting Common Issues
If a device cannot reach a service on a standard port, the issue usually lies in firewall configuration or service binding.
Connection Refused vs. Timeout: A "connection refused" error means the host is reachable, but no service is listening on the port. A "timeout" suggests a packet is being dropped by a firewall or router. Check the service status first, then inspect firewall rules.
Localhost Binding: Some services bind only to 127.0.0.1 by design. If you need external access, check the configuration file to see if the bind address can be changed to the interface IP or 0.0.0.0. Be aware that changing this increases exposure.
Dynamic Ports: Protocols like FTP and SIP use dynamic port ranges for data channels. Ensure your firewall stateful inspection is enabled, or explicitly allow the high-port ranges used by passive mode FTP or media streams.