MongoDB MongoDB connection error: MongoError: connect ECONNREFUSED 127.0.0.1:27017 error when my router is turn off
<p>whenever my router goes off ... my mongod connection dont work . I had power cut twice and found this error while starting my application. Once my router was up I was able to reconnect mongo db</p>

<p>MongoDB connection error: MongoError: connect ECONNREFUSED 127.0.0.1:27017 while wifi router is off.</p>