Skip to main content
DNSMedium PriorityPro

Open Ports

Updated November 2026·SecScanner Team

Unnecessary open ports increase your attack surface and may expose vulnerable services.

Results in 1–3 minutes · Free · No signup required

Why It Matters

Each open port is a potential entry point for attackers. Services on open ports may have vulnerabilities or weak authentication.

How We Check

We scan for commonly exploited ports beyond standard web ports (80, 443) to identify potential exposure.

Good vs Bad Values

Good and bad values for Open Ports
ValueVerdictWhy
Only 80 and 443 openGoodThe surface a public website needs. The ports this check probes are all closed or filtered.
443 open, 22 open with key-only SSH behind a firewall allow-listGoodSSH is not in the probe list because it is routinely open. Keys only and an allow-list make it a controlled exception.
25/tcp open on a host that really receives mailWeakExpected for a mail server, and the check lists it anyway. If the host is a plain web server, close it.
21/tcp (FTP) openBadCredentials and files travel in clear text. Use SFTP instead of FTP.
23/tcp (Telnet) openBadA clear-text remote shell with no encryption. Remove it everywhere.
3389/tcp (RDP) or 5900/tcp (VNC) open to the internetBadRemote desktop services are a frequent ransomware entry point and are constantly scanned for weak passwords.
3306 (MySQL), 5432 (PostgreSQL), 27017 (MongoDB) reachableBadA database listening on a public address. Password guessing and unpatched flaws are enough to leak the data.
6379 (Redis) or 11211 (Memcached) reachableBadBoth historically ship without authentication, and Memcached has been abused for large UDP amplification attacks.

How to Fix

Close unnecessary ports with firewall rules. Move non-public services behind VPN. Use port knocking for sensitive services.

Close at the firewall first — the network layer is where this belongs. With ufw, deny by default and allow only what the host serves:

ufw default deny incoming
ufw allow 80,443/tcp
ufw allow from 203.0.113.10 to any port 22 proto tcp
ufw enable

Bind the service to the loopback or a private address so it is not listening publicly in the first place:

# redis.conf
bind 127.0.0.1 -::1
protected-mode yes

# postgresql.conf
listen_addresses = 'localhost'

# mysqld.cnf
bind-address = 127.0.0.1

Docker: publish to the loopback only, -p 127.0.0.1:5432:5432, or leave the port unpublished and let other containers reach it over a user-defined network. AWS: edit the security group so the database port allows only the application's security group as a source, never 0.0.0.0/0. Cloudflare Tunnel or a VPN lets staff reach admin services without any inbound port.

Verify from outside your network, since a test from inside the host sees the local view:

nmap -Pn -p 21,23,25,3306,3389,5432,5900,6379,11211,27017 example.com
# every probed port should show closed or filtered

Common Mistakes

  • Publishing a container port. `docker run -p 5432:5432` binds to all interfaces and inserts firewall rules that bypass `ufw`, so the database is reachable even though `ufw` says it is blocked.
  • Relying on the default bind address. Redis, Memcached and database servers built for a trusted network often listen on `0.0.0.0` after a config tweak or a package default.
  • Opening a port “just for a minute” in a cloud security group (`0.0.0.0/0`) and forgetting it. Set an expiry in the ticket or manage security groups in code.
  • Firewalling only IPv4. The IPv6 address can still expose the service when the rules cover only one family.
  • Scanning the CDN and calling it clean. If the hostname resolves to a proxy such as Cloudflare, the scan sees the proxy's open ports, not the origin's; check the origin address too.
  • Hardening the application and leaving the database on a public subnet. Put databases on private networks and reach them through a bastion or VPN.

Frequently Asked Questions

What is Open Ports?

Unnecessary open ports increase your attack surface and may expose vulnerable services.

Why does Open Ports matter for website security?

Each open port is a potential entry point for attackers. Services on open ports may have vulnerabilities or weak authentication.

How do I fix Open Ports issues?

Close unnecessary ports with firewall rules. Move non-public services behind VPN. Use port knocking for sensitive services.

Related Security Checks

Check Your Website Now

Run a free security scan to check for Open Ports issues and 61 other security checks.

Scan Your Website Free