title: Error at connecting to MongoDb Atlas Server
body: <p>So I'm currently wirting a web application and I need database so I decided to go with mongodb and mongoose. Until now I tested everything on localhost and it worked but I wanted to move the data to a server. I had heard of Atlas and registered myself and "uploaded" the data. </p>
  
  <p>Now I want to connect to the cluster via a node.js app. </p>
  
  <pre><code>mongoose.connect('mongodb+srv://engllucas:p%40ssw0rd@insight-quhku.mongodb.net/test');
  </code></pre>
  
  <p>I got the string of the mongodb Atlas site at the point <strong>Connect Your Application</strong></p>
  
  <p>Then I swapped my password.</p>
  
  <pre><code>mongoose.connect('mongodb://engllucas:p%40ssw0rd@insight-quhku.mongodb.net/test');
  </code></pre>
  
  <p>This didn't work either.</p>
  
  <p>Thats the error message:</p>
  
  <pre><code>{ MongoError: failed to connect to server [insight-shard-00-02-quhku.mongodb.net:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 18.194.163.64:27017]
  at Pool.&lt;anonymous&gt; (U:\WEBT\ProjectInsight\Quiz\node_modules\mongodb-core\lib\topologies\server.js:503:11)
  at emitOne (events.js:115:13)
  at Pool.emit (events.js:210:7)
  at Connection.&lt;anonymous&gt; (U:\WEBT\ProjectInsight\Quiz\node_modules\mongodb-core\lib\connection\pool.js:326:12)
  at Object.onceWrapper (events.js:318:30)
  at emitTwo (events.js:125:13)
  at Connection.emit (events.js:213:7)
  at TLSSocket.&lt;anonymous&gt; (U:\WEBT\ProjectInsight\Quiz\node_modules\mongodb-core\lib\connection\connection.js:245:50)
  at Object.onceWrapper (events.js:316:30)
  at emitOne (events.js:115:13)
  at TLSSocket.emit (events.js:210:7)
  at emitErrorNT (internal/streams/destroy.js:64:8)
  at _combinedTickCallback (internal/process/next_tick.js:138:11)
  at process._tickCallback (internal/process/next_tick.js:180:9)
    name: 'MongoNetworkError',
  </code></pre>
  
  <p>message: 'failed to connect to server [insight-shard-00-02-quhku.mongodb.net:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 18.194.163.64:27017]' }
  (node:4920) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): MongoNetworkError: failed to connect to server [insight-shard-00-02-quhku.mongodb.net:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 18.194.163.64:27017]
  (node:4920) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.</p>