- Reference >
- Default MongoDB Port
Default MongoDB Port¶
The following table lists the default TCP ports used by MongoDB:
Default Port | Description |
---|---|
27017 |
The default port for mongod and mongos
instances. You can change this port with port or
--port . |
27018 |
The default port when running with --shardsvr
runtime operation or the shardsvr value for the
clusterRole setting in a configuration file. |
27019 |
The default port when running with --configsvr
runtime operation or the configsvr value for the
clusterRole setting in a configuration file. |
28017 |
The default port for the web status page. The web status
page is always accessible at a port number that is 1000 greater
than the port determined by port . |