zaro

What port range is Atlas MongoDB?

Published in MongoDB Ports 1 min read

Atlas MongoDB services are primarily accessed through private endpoints on ports 27015 through 27017.

Understanding Atlas MongoDB Port Usage

When connecting to MongoDB Atlas, especially through private networking solutions like Private Service Connect, a specific range of ports is utilized. This port range is dedicated to ensuring secure and efficient communication with your Atlas clusters.

For services accessed via private endpoints, the critical port range is 27015 to 27017. This range is essential for establishing connections and maintaining the integrity of data transfer.

It is strongly recommended to allow-list the entire specified port range in your network configurations rather than attempting to open individual ports. This practice helps ensure seamless connectivity and prevents potential issues that might arise from services utilizing different ports within the designated range for various functions.

Here's a summary of the port information:

Service Aspect Port Range Recommendation
Atlas Private Endpoints 27015 - 27017 Allow-list the entire range to ensure full connectivity and avoid potential issues.

By configuring your firewalls and security groups to permit traffic over this range, you facilitate robust and reliable access to your MongoDB Atlas deployments, enhancing both security and operational efficiency.