I faced a problem here. Mongodb native driver on nodejs tries to discover the topology and replaces the external IP addresses with internal ones (when using mongoose client). See the issue raised :- http://stackoverflow.com/questions/41307098/mongoerror-no-primary-found-in-replicaset-mongoose-replaces-external-ip-addres

Written by

Hacker and into fitness and adventure. Leads a simple life and does not try to fit in too much. :-)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store