title: MongoError: connect UNKNOWN
body: <p>I have a mongo server running on localhost:27017.<br>
  Using mongo console I can insert data in mongo db.<br>
  But when I try to connect it using node.js i get the above stated error.<br>
  Following is the code used:  </p>
  
  <pre><code>    var MongoClient = require('mongodb').MongoClient;
  
      // Connect to the db  
      MongoClient.connect("mongodb://127.0.0.1:27017/Kiosque", function(err, db) {
        if(err) {
        console.log("We arent connected "+err);
        }
      });
  </code></pre>
  
  <p>so i just run this file with node checkConnection.js
  and I get the follwong error:  </p>
  
  <pre><code>We arent connected MongoError: connect UNKNOWN
  </code></pre>
  
  <p>I have searched various answers but didnt get any solution? Can anybody help?</p>