Free Online Port Scanner: Check Which Ports Your Server Exposes
A free online port scanner checks which TCP/UDP ports on your public IP or domain respond to connection attempts, then reports which ones are open, closed, or filtered so you can see exactly what's reachable from the internet before an attacker does. Run one against your own server's IP address or hostname, and in under a minute you'll have a list of open ports mapped to the services listening on them — SSH, a database, an admin panel, whatever. That list is the starting point for closing anything that shouldn't be public.
Most teams don't actually know their full exposed port surface. A port gets opened for a one-time debugging session, a cloud security group gets widened "just for testing," a Docker container publishes a port by default — and six months later nobody remembers it's there. A port scan is the fastest way to find out.
What a port scan actually tells you
Every internet-facing service listens on a numbered port — a logical endpoint, not a physical one, that tells the operating system which process should handle incoming traffic. A scanner sends connection attempts to a range of ports and classifies each response. According to the Nmap port scanning documentation, the classic states are:
- Open — something is actively listening and will respond
- Closed — the host answered, but nothing is listening on that port
- Filtered — a firewall is dropping or blocking probes, so the real state is unknown
- Open|filtered — the scanner can't tell open from filtered (common with UDP)
For security purposes, "open" is the one that matters. An open port means a process on that host accepts network connections — and every open port is a potential entry point an attacker can probe for a weak login, an outdated version, or a default-config bug.
How to check which ports are open: three methods
1. Free online port scanner (fastest, no install)
A browser-based scanner checks your server from an external vantage point, which matters: a port can look open from inside your own network and still be blocked at the firewall edge. External scanning answers the question that actually counts — "can the internet reach this?" SecurityInfinity's network audit scanner runs a port scan with service fingerprinting against a domain or IP you've verified you own, and returns which ports are open along with the service and version running on each — so you're not just getting a list of numbers, you're getting what's actually listening there.
2. Nmap (local tool, most control)
Nmap is the standard command-line port scanner and is free and open source. A basic scan of your own server looks like:
nmap -sV your-server-ip
The -sV flag adds service/version detection, so instead of just "port 22 open" you get "port 22 open, OpenSSH 8.9." Nmap scans the top 1,000 most common ports by default; add -p- to scan the full 0–65535 range, which catches services someone put on a nonstandard port to avoid exactly this kind of check.
3. Manual single-port checks
For a quick yes/no on one port, nc -zv your-server-ip 6379 (netcat) or telnet your-server-ip 3389 tells you if that specific port accepts a connection. This doesn't replace a full scan — it's useful when you already suspect a specific service is exposed and want to confirm it in seconds.
Ports that get exploited the most when exposed
Not every open port is a finding. Port 443 (HTTPS) is supposed to be open. The ports below are the ones that keep showing up in breach writeups and CISA's ransomware misconfiguration catalog specifically because they're so often exposed by accident and left with weak or no authentication.
| Port | Service | Why it's a common finding |
|---|---|---|
| 22 | SSH | Brute-forced constantly if open to the world; a safe target for key-only auth and IP allowlisting |
| 3389 | RDP | CISA lists RDP as a top ransomware entry point; SANS ISC tracks continuous internet-wide scanning for exposed RDP |
| 27017 | MongoDB | Ships listening on all interfaces in older default configs; if security.authorization isn't enabled, anyone who reaches the port has full read/write access |
| 6379 | Redis | No authentication by default; an exposed instance can be read, rewritten, and in some configurations escalated to remote code execution via CONFIG SET |
| 9200 | Elasticsearch | Shipped without authentication by default before version 8.0; an open, unauthenticated 9200 returns full index contents to a plain curl request |
| 445 / 139 | SMB | Legacy SMBv1 traffic is unencrypted and has a long history of exploited vulnerabilities; CISA flags it for upgrade to SMBv2/v3 with encryption |
| 23 | Telnet | Transmits credentials in cleartext; CISA recommends SSH as the encrypted replacement |
| 5900 | VNC | Unencrypted remote desktop traffic; same mitigation pattern as RDP — don't expose directly, tunnel through a VPN |
The pattern across all of these: a database or admin service meant for internal use gets bound to a public interface, authentication is either disabled by default or never turned on, and the port shows up on a mass internet scan within hours. Services like Shodan continuously index exposed ports across the entire internet, so "nobody will find it" is not a real control.
What to do with the results
Once you have a list of open ports, work through it in order:
- Confirm it should be open at all. If a database port is reachable from the public internet and the only clients that need it are your own app servers, move it behind a VPC, security group, or VPN and close the public listener.
- Check authentication is actually enabled. An open port isn't automatically a breach — a port that returns "authentication required" is a different risk tier than one that returns live data to an anonymous request. Test this directly rather than assuming.
- Match the service version against known CVEs.
-sVoutput (or the scanner's fingerprint) gives you a version string; check it against the vendor's security advisories. - Re-scan on a schedule, not once. Cloud security groups and firewall rules change as infrastructure evolves. A port that was closed last quarter can reopen after a routine deploy.
A single port scan is a snapshot. If your infrastructure changes — and most does, weekly — a one-time check goes stale fast. SecurityInfinity's IP discovery scanner maps the subnets and live hosts behind a domain first, so you're scanning the infrastructure that's actually yours, including hosts you may have forgotten are still running. Pair that with quick web scan for the web-layer side of the same exposure — OWASP Top 10 issues and infrastructure leaks on whatever's listening on 80/443 — and cloud misconfigs if those open ports sit behind AWS, Azure, or GCP resources, since a security group left wide open is often the actual root cause behind the port being reachable in the first place. If a MongoDB instance turns up in your scan, SecurityInfinity's MongoDB health check goes further than "port 27017 is open" and checks whether authentication and access control are actually configured correctly.
Port scanning is also only one layer. It tells you what's reachable, not whether what's reachable is itself misconfigured — our walkthrough on mapping your external attack surface covers the broader discovery process, and the AWS security misconfigurations checklist and checking if S3 buckets are publicly exposed cover two of the most common things that sit behind an exposed port once you find one.
Run a free scan now
A free online port scanner answers one narrow question fast: what's open right now. Start a free scan to see the open ports, services, and fingerprints on your domain, and get exact remediation for anything that shouldn't be reachable — no credit card, no install.
Frequently asked questions
Is it legal to use a free online port scanner?
Scanning a server you own or are authorized to test is legal and routine security practice. Scanning someone else's infrastructure without permission can violate computer-abuse laws in most jurisdictions, so only point a scanner at domains or IPs you control or have explicit authorization to test.
What's the difference between a port scanner and a vulnerability scanner?
A port scanner tells you which ports are open and what service is listening on each one. A vulnerability scanner goes further, checking the software behind those open ports for known weaknesses, misconfigurations, and exploitable bugs. Port scanning is usually the first step; vulnerability scanning is what happens once you know where to look.
Which ports should never be open to the public internet?
Database ports like 27017 (MongoDB), 6379 (Redis), 9200 (Elasticsearch), and administrative/remote-access ports like 3389 (RDP), 23 (Telnet), and 5900 (VNC) should generally sit behind a VPN, bastion host, or private network rather than facing the internet directly, per CISA's ransomware misconfiguration guidance.
Can a port scan crash my server?
A standard TCP connect or SYN scan against a properly configured server is lightweight and won't cause downtime. Aggressive scan modes against fragile legacy equipment occasionally cause issues, which is why read-only, well-behaved scanning (the default mode in tools like Nmap and most online scanners) is standard practice for production systems.
How often should I run a port scan on my own infrastructure?
Run one after any infrastructure change — new server, updated security group, new container deployment — and on a recurring schedule otherwise, since configurations drift over time. Continuous or scheduled re-scanning catches a port that reopens after a deploy; a single scan only tells you about the moment it ran.