I make Dedicated New Cluster. and Network Access add 0.0.0.0/0
and ‘peering’ connect GCP service.
and connect to mongodb+srv://<user>:<pw>@<host>/<dbName>?retryWrites=true&w=majority
and then show error code
Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/
I tried several solutions
- change network
- add DNS (google etc…)
- check http://portquiz.net: 27017
- make Shared New Cluster. and connect (success)
- open GCP VM and try to connect (success)
Why can’t it connect?