Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adding localhost to mongo atlas whitelist

I've been using the option allow everyone connection to my atlas cluster by selecting the "Allow Access from Anywhere" button in the group IP whitelist. Is there a way to just add my localhost ip address instead. I tried doing it but I got the following error :

/me/node_modules/mongodb/lib/replset.js:364
          process.nextTick(function() { throw err; })
                                        ^
MongoError: connection 4 to cluster0blbla.net:27017 closed

Anyone know of a way to add localhost connection without opening security up to everyone ?

like image 269
me-me Avatar asked Oct 15 '25 03:10

me-me


1 Answers

Yes you can always add your local IP Address by going to:

Security - > IP Whitelist and then add a new IP. There you can click "ADD CURRENT IP ADDRESS" along with any comment:

Atlas Whitelist

like image 158
Jay Gordon Avatar answered Oct 17 '25 02:10

Jay Gordon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!