To check open ports: Enterno.io port-checker — enter host and port, get status (open/closed/filtered) in 1-2 seconds. For a full scan (top-100 ports) use the Port Scanner.
Free online tool — ping & port checker: instant results, no signup.
nc -zv hostname 443 or nmap -p 22,80,443 hostname. Online checker is simpler and checks from varied IPs.Open ports on a server are essential gateways for communication between different systems. Each port corresponds to a specific service or application running on a server, allowing data to flow in and out. Understanding open ports is crucial for network security, as they can be potential entry points for unauthorized access.
Every service that runs on a server listens on a specific port. For example:
When a port is open, it means that the service is actively listening for connections. Conversely, closed ports indicate that no service is available at that port, while filtered ports may be blocked by a firewall, preventing access to the service.
Monitoring open ports is vital for identifying vulnerabilities in your server. Attackers often scan for open ports to exploit weaknesses in services running on those ports. Regularly checking for open ports allows you to maintain a secure environment by ensuring only necessary services are exposed to the internet.
Nmap (Network Mapper) is a powerful tool widely used for network discovery and security auditing. It can be employed to find open ports on a server and provides detailed information about the services running on those ports.
To perform a basic scan using Nmap, you can use the following command:
nmap [target-host]This command will scan the target host for the most common 1,000 ports. To scan all 65,535 ports, use:
nmap -p- [target-host]For a more detailed output that includes service version detection, use:
nmap -sV [target-host]Additionally, if you want to scan for specific ports, you can specify them like this:
nmap -p 22,80,443 [target-host]These commands provide a clear view of which ports are open and what services are running, enabling you to assess your server's security posture effectively.
For continuous monitoring of open ports on your server, automating port scans through scripting can save time and enhance security. Below is a simple bash script that utilizes Nmap to check for open ports and logs the results.
First, create a new script file:
touch port_scan.shThen, open the file in a text editor and add the following code:
#!/bin/bash
HOST=[target-host]
LOGFILE=port_scan_results.txt
echo "Scanning $HOST for open ports..."
nmap -p- $HOST > $LOGFILE
echo "Scan complete. Results saved to $LOGFILE"Make sure to replace [target-host] with the actual IP address or hostname of your server. After saving the script, make it executable:
chmod +x port_scan.shNow, you can run the script:
./port_scan.shThis will perform a full port scan and save the results to port_scan_results.txt. You can schedule this script using cron jobs for regular checks, enhancing your server's security by ensuring that any newly opened ports are promptly identified and assessed.
Ping sends ICMP packets to a host and measures response time. Port scanning checks which TCP ports are open and accepting connections — helping diagnose serviceavailability issues.
Choose packet count (3, 4, 6, 10). Stats: min/avg/max latency and packet loss.
Check 14 key ports: HTTP, HTTPS, SSH, FTP, SMTP, MySQL, PostgreSQL, and more.
Testing from our server — see site availability from outside, not just your local network.
Need constant monitoring? Create a monitor — checks every minute with notifications.
availability diagnosis
TCP port scanning
connection debugging
basic health check
Ping check history, host availability monitoring and downtime alerts.
Sign up freeFor a quick check (1-2 requests/min) — no. For continuous monitoring — free account. No credit card.
Yes. Enterno.io Scout is a forever-free plan with 5 monitors. All basic tools without signup.
Free plan — 10 monitors, checks every 5 min, no card required. Upgrade for 1-minute interval and multi-region monitoring.