TCP 27018
Synopsis
- MongoDB uses TCP port 27018 as the default listening port for shard servers (mongod started with the --shardsvr option) in sharded cluster deployments.
- Real-world examples include MongoDB Enterprise/Community sharded clusters, Percona Server for MongoDB shard nodes, and packaging like Bitnami’s mongodb-sharded Helm chart and Docker images, which expose 27018 for shard replica set members by default.
- MongoDB’s documented default ports are 27017 (mongod/mongos), 27018 (shardsvr), and 27019 (configsvr), confirming 27018’s role specifically for shards.
- Security note: Internet-exposed, unauthenticated MongoDB instances—including shard servers on 27018—have been mass-scanned and hit by ransomware/data-wiping campaigns.
Observed activity
Last 30 days
Detailed chart