title: You have failed to connect to a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network
body: <pre><code>MongoDB shell version v4.4.6
  Enter password: 
  connecting to: mongodb://cluster0-shard-00-01.x2gaq.mongodb.net:27017,cluster0-shard-00-02.x2gaq.mongodb.net:27017,cluster0-shard-00-00.x2gaq.mongodb.net:27017/Testingdb?authSource=admin&amp;compressors=disabled&amp;gssapiServiceName=mongodb&amp;replicaSet=atlas-hrfqux-shard-0&amp;ssl=true
  {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-06-16T11:30:24.198Z&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;NETWORK&quot;,  &quot;id&quot;:4333208, &quot;ctx&quot;:&quot;ReplicaSetMonitor-TaskExecutor&quot;,&quot;msg&quot;:&quot;RSM host selection timeout&quot;,&quot;attr&quot;:{&quot;replicaSet&quot;:&quot;atlas-hrfqux-shard-0&quot;,&quot;error&quot;:&quot;FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \&quot;nearest\&quot; } for set atlas-hrfqux-shard-0&quot;}}
  
  
  *** You have failed to connect to a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network.
  
  Error: connect failed to replica set atlas-hrfqux-shard-0/cluster0-shard-00-01.x2gaq.mongodb.net:27017,cluster0-shard-00-02.x2gaq.mongodb.net:27017,cluster0-shard-00-00.x2gaq.mongodb.net:27017 :
  connect@src/mongo/shell/mongo.js:374:17
  @(connect):2:6
  exception: connect failed
  exiting with code 1
  </code></pre>
  <p>This error pops out everytime when I try to connect my mongo shell to the Mongodb Atlas.</p>
  <p>Is there any solution to get rid out of this error.</p>
  <p>Thank you!</p>