Checking open ports is one of the most crucial tasks for server administrators and web developers. An open port means there is a service on the server accepting connections. However, each open port is a potential vulnerability.
What Are Ports and Why Check Them?
Network ports are logical connection points through which applications exchange data. Each port has a number ranging from 0 to 65535. The most common ports are:
- 80 (HTTP) โ non-encrypted web server
- 443 (HTTPS) โ web server with SSL/TLS
- 22 (SSH) โ secure remote access
- 3306 (MySQL) โ MySQL database
- 5432 (PostgreSQL) โ PostgreSQL database
- 6379 (Redis) โ Redis cache server
Online Port Check
The easiest way is to use the Xuvero online port scanner. Enter an IP address or domain, select the ports, and get results in seconds. The tool uses parallel connections for fast checking of multiple ports simultaneously.
Command Line Port Check
Nmap โ The Most Powerful Scanner
nmap -sT -p 80,443,22,3306 example.comNmap will show the status of each port: open, closed, or filtered.
Telnet โ Quick Check of a Single Port
telnet example.com 80If a connection is established, the port is open. If "Connection refused," it's closed.
Netcat (nc) โ Versatile Tool
nc -zv example.com 80-443The -z flag performs scanning without sending data, -v โ provides detailed output.
How to Protect Open Ports?
- Close unnecessary ports using a firewall (iptables, ufw, firewalld)
- Change default ports โ move SSH from 22 to another port
- Use fail2ban to block brute-force attacks
- Set up VPN for access to administrative ports
- Regularly update server software
Conclusion
Regularly checking ports is basic server security hygiene. Use Port Checker from Xuvero for quick online diagnostics or nmap for deep analysis.