Port 27017 (TCP) โ€” MongoDB

MongoDB database server.

๐Ÿ”’ Runs locally โ€” your input never leaves this browser tab

Port
27017
Protocol
TCP
Service
MongoDB
Internet exposure risk
High

Open MongoDB instances are routinely wiped and ransomed. Enable auth and bind privately.

Check if port 27017 is open

On the server, see what is listening:

sudo ss -tulpn | grep ':27017 '

From another machine, test reachability:

nc -zv your-server.example.com 27017

Block port 27017 from the internet

With UFW (Ubuntu/Debian):

sudo ufw deny 27017

With firewalld (RHEL/AlmaLinux/Rocky):

sudo firewall-cmd --permanent --remove-port=27017/tcp && sudo firewall-cmd --reload

โ† All common ports