![Connecting to a Cluster Instance Using Mongo Shell (Public Network)_Document Database Service_Getting Started_Getting Started with Clusters_Connecting to a Cluster Instance_Connecting to a Cluster Instance over a Public Network_Huawei Cloud Connecting to a Cluster Instance Using Mongo Shell (Public Network)_Document Database Service_Getting Started_Getting Started with Clusters_Connecting to a Cluster Instance_Connecting to a Cluster Instance over a Public Network_Huawei Cloud](https://support.huaweicloud.com/intl/en-us/qs-dds/en-us_image_0000001186319808.png)
Connecting to a Cluster Instance Using Mongo Shell (Public Network)_Document Database Service_Getting Started_Getting Started with Clusters_Connecting to a Cluster Instance_Connecting to a Cluster Instance over a Public Network_Huawei Cloud
![Only allowing my server & local mongoDB compass to interact with database - Working with Data - MongoDB Developer Community Forums Only allowing my server & local mongoDB compass to interact with database - Working with Data - MongoDB Developer Community Forums](https://www.mongodb.com/community/forums/uploads/default/original/3X/e/f/eff3d4a18ae62e2db1246b8672b0eb125963f428.png)
Only allowing my server & local mongoDB compass to interact with database - Working with Data - MongoDB Developer Community Forums
![Connecting to a Replica Set Instance Using Mongo Shell (Public Network)_Document Database Service_Getting Started_Getting Started with Replica Sets_Connecting to a Replica Set Instance_Connecting to a Replica Set Instance over a Public Network_Huawei Connecting to a Replica Set Instance Using Mongo Shell (Public Network)_Document Database Service_Getting Started_Getting Started with Replica Sets_Connecting to a Replica Set Instance_Connecting to a Replica Set Instance over a Public Network_Huawei](https://support.huaweicloud.com/intl/en-us/qs-dds/en-us_image_0000001186638340.png)
Connecting to a Replica Set Instance Using Mongo Shell (Public Network)_Document Database Service_Getting Started_Getting Started with Replica Sets_Connecting to a Replica Set Instance_Connecting to a Replica Set Instance over a Public Network_Huawei
![mongodb - mongo db-Either all host names in a replica set configuration must be localhost references, or none must be; found 1 out of 2 - Database Administrators Stack Exchange mongodb - mongo db-Either all host names in a replica set configuration must be localhost references, or none must be; found 1 out of 2 - Database Administrators Stack Exchange](https://i.stack.imgur.com/SvWOL.png)