Port 27017 — MongoDB Database (MongoDB): What It Is and When to Close It

Port 27017 is used by MongoDB Database (MongoDB). MongoDB is a popular NoSQL document database used by many web applications. The default port for MongoDB connections.

What Does an Open Port 27017 Mean?

A MongoDB database is exposed to the internet. MongoDB has historically defaulted to no authentication. Hundreds of millions of records have been stolen from exposed MongoDB instances. Critical vulnerability.

This port should NOT be open to the public internet on typical systems. If you see it open, investigate immediately.

Security Risk Level

Critical Risk

How to Check if Port 27017 Is Open

Use the ExamineIP Port Scanner to check if port 27017 is open on any IP address from the public internet. Enter the target IP and select the relevant port preset.

How to Close Port 27017

  • Stop the service using port 27017 if you no longer need it
  • Add a firewall rule blocking inbound connections on port 27017
  • Check your router for port forwarding rules that expose this port
  • Run netstat -ano | findstr :27017 (Windows) to see which process is using it

Related Ports

MongoDB is related to: {implode(‘, ‘, Array)}

Protect Your Open Ports

If you need services like remote access, use a VPN to create a private encrypted tunnel instead of exposing ports directly to the internet. A VPN also hides your real IP address so port scanners cannot identify your device. Try PureVPN or IPVanish.

Scroll to Top