Skip to content

MongoDB — Common Ports

Community software entries: links are references, not individual verification.

Default Ports (1)

27017
tcpDatabase

MongoDB mongod and mongos normally default to TCP 27017. Other roles, including shard and configuration servers, can have different defaults.

Default port for MongoDB database server

Scope

Port associations on this page are community-database references (common usage), not a live measurement of any machine; confirm with the official documentation before deployment.

Frequently asked questions

What port does MongoDB use?

MongoDB commonly uses these ports: 27017. The default port is 27017. These are community database references — actual configuration may differ.

How do I check if MongoDB is running?

Run sudo ss -tlpn 'sport = :27017' on the server to check for listening processes on these ports. Also use systemctl status <service> to check the service state. Without root you may not see other users' processes. A listening port alone does not prove the software identity — verify with the config file and process name.

What category does MongoDB belong to?

MongoDB belongs to the Database category. This page lists the software's port associations and their roles.

Quick Info

Categories
Database
Associated ports
1
Aliases
—