I have:
MongoDB Atlas Cluster
VPC Peering between GCP.
When I tried connect to DB from my home laptop:
mongo "mongodb+srv://hello-dev-x53pa.gcp.mongodb.net/test" --username myuser
I received an error:
2020-01-09T15:32:33.697+0200 W NETWORK [ReplicaSetMonitor-TaskExecutor-0] Failed to connect to 192.168.240.4:27017 after 5000ms milliseconds, giving up.
2020-01-09T15:32:33.698+0200 W NETWORK [thread1] Failed to connect to 192.168.240.2:27017 after 5000ms milliseconds, giving up.
I see that received local IP address but I don't understand how I can connect to the my DB which in the private VPC?
I will be very happy for any help!