Connect behid a corporate Proxy

Hi everyone. It’s possible to use Compass or Mongo Shell behind a corporate Proxy ?

Hi Corrado_21924,

You can surely use MongoDB behind proxy unless and until you need to connect to the outside cluster.

Suppose you want to connect to our Atlas cluster, to check if you are able to connect, ping cluster:


If you are able to connect, then try from mongo shell using:

       mongo "mongodb://,," --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics

Same you can do with Compass.

And if you want to connect to your cluster, then you can whitelist your IP from (Security -> IP Whitelist) and then do the same steps.

If you are unable to connect to the cluster you need to contact your IT team to allow connections to this address.