Search 93+ free tools… (e.g. json, vpn, password) ⌘K
Link Tools Dereferer Hide Referrer Link URL Shortener Affiliate Cloaker PayPal Links PayPal DonationPayPal Links Privacy Tools Password Generator Cloudflare Resolver My Referrer Torrent Tools Magnet → Torrent Torrent → Magnet Torrent Editor Pirate Bay Proxies Movierulz Proxies ExtraTorrent Proxies Dev Tools Base64 Encoder Hash Generator HTTP Headers Disposable Email Checker Company Blog About Us Contact Anonymize Free
Security

Port Scanner: Check Open Ports and Secure Your Server in 2026

JAY
JAY
Author
May 14, 2026 · 3 min read · 368 views · 1 (2)
Port Scanner: Check Open Ports and Secure Your Server in 2026

What Is a Port Scanner? A port scanner sends connection requests to TCP ports on a host and records which ones respond. Open ports indicate active services. Check your server: Port Scanner Which Ports

What Is a Port Scanner?

A port scanner sends connection requests to TCP ports on a host and records which ones respond. Open ports indicate active services. Check your server: Port Scanner

Which Ports Should Be Open?

PortServicePublic?
80HTTPYes (web servers)
443HTTPSYes (web servers)
22SSHWhitelist IPs only
3306MySQLNever public
5432PostgreSQLNever public
6379RedisNever public
27017MongoDBNever public
3389RDPNever public

How a Port Scan Actually Works

A basic TCP scan attempts to complete the first two steps of the standard three-way handshake: it sends a SYN packet and watches the response. A SYN-ACK reply means the port is open and listening; a RST (reset) packet means it's closed; no response at all usually means a firewall is silently dropping the packet rather than actively rejecting it. This is why a well-configured firewall matters more than just "closing" a port — a dropped connection gives an attacker less information than an actively refused one, since they can't easily tell whether anything is even running there.

What Actually Happened With Exposed MongoDB Instances

The MongoDB ransom wave wasn't hypothetical — starting in late 2016 and escalating through 2017, attackers ran automated scans across the internet, found tens of thousands of MongoDB instances left open with no authentication, wiped their contents, and left a ransom note demanding payment for data that, in most cases, they'd never actually kept a copy of. It remains one of the clearest real-world demonstrations of why "default config with no auth, bound to 0.0.0.0" is a genuinely dangerous default, not just a theoretical risk.

Most Dangerous Open Ports

Port 3306 - MySQL

An open MySQL port is one of the most common data breach causes. Attackers constantly scan for exposed databases. MySQL should only be accessible from localhost or your app server private IP.

Port 27017 - MongoDB

Thousands of MongoDB databases have been wiped and ransomed because the default config binds to all interfaces. Always bind to 127.0.0.1 unless you specifically need remote access.

Port 6379 - Redis

Redis has no authentication by default. An open Redis port lets anyone read all cached data including sessions. Bind to localhost and set AUTH passwords.

How to Close Dangerous Ports

UFW (Ubuntu)

ufw deny 3306 | ufw deny 27017 | ufw deny 6379

AWS Security Groups

Edit your security group to remove any rules allowing 0.0.0.0/0 on database ports. Restrict SSH to your IP only.

🔌
Port Scanner

Check which ports are open on any server. Fast and free.

Scan Ports Free →
# Security
Share on X
Rate this article
★ 1 / 5 from 2 ratings
Your rating is stored anonymously. You can rate once per post.
JAY
Written by
JAYVerified site owner
Site Owner & Founder
JAY founded Anonymiz in 2013 and has personally built and maintained every one of its 100+ privacy and web utility tools since — from the referrer-stripping dereferer engine to the DNS leak and WebRTC leak testers. All technical infrastructure, tool logic, and site content are handled directly

Related Articles

Certificate Key Matcher: How to Check If Your SSL Certificate Matches Its Private Key
Certificate Key Matcher: How to Check If Your SSL Certificate Matches Its Private Key
Jul 3, 2026 · JAY
How to Use a Port Scanner: Check Open Ports on Any Server
How to Use a Port Scanner: Check Open Ports on Any Server
Jun 4, 2026 · JAY
How to Check If an Email Address Is Real or Fake
How to Check If an Email Address Is Real or Fake
Jun 4, 2026 · JAY
← Back to Blog
Done!