Docs Home → Develop Applications → MongoDB Manual
Default MongoDB Port
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoDB server.
The following table lists the default TCP ports used by MongoDB:
Default Port | Description |
---|---|
27017 | |
27018 | The default port for mongod when running with
--shardsvr command-line option or
the shardsvr value for the clusterRole
setting in a configuration file. |
27019 | The default port for mongod when running with
--configsvr command-line option or
the configsvr value for the clusterRole
setting in a configuration file. |