Port 27017

mongodb · TCP/UDP

RangeRegistered port (1024–49151)
ProtocolTCP/UDP
Servicemongodb
Registered2019-02-21

Frequently asked questions

What is port 27017 used for?

Port 27017 is registered with the IANA for mongodb (TCP/UDP). Description: Mongo database system; Reserved.

Is port 27017 a well-known port?

No. Port 27017 is in the range 1024–49151 (registered or user ports). Ordinary programs may open it without root privileges.

How do I check whether port 27017 is open?

Locally on Linux with ss -tulpn | grep ':27017\b', on Windows with netstat -ano | findstr :27017. To test a remote host use Test-NetConnection <host> -Port 27017 in PowerShell or nc -zv <host> 27017 on Linux/macOS.

How do I open port 27017 in the firewall?

Ubuntu/Debian (ufw): sudo ufw allow 27017/tcp. Fedora/RHEL (firewalld): sudo firewall-cmd --add-port=27017/tcp --permanent, then firewall-cmd --reload. Windows (PowerShell as administrator): New-NetFirewallRule -DisplayName "Port 27017" -Direction Inbound -Protocol TCP -LocalPort 27017 -Action Allow.

IANA registry entries

ProtocolServiceDescription (IANA)
TCPmongodbMongo database system
UDP–Reserved

Nearby entries