How to Whitelist Your IP Address

It is necessary to whitelist your IP Address by which you can access your database. it is like giving permission for your computer to connect to the database.

Step 1: Navigate to Network Access Page

To Whitelist your IP Address, In Side Bar you will find a Network Access page in the Security section. Open that page and click on ADD IP ADDRESS button.

Step 2: Whitelist and Configure IP Address

After that Click on ADD CURRENT IP ADDRESS button to add your current IP Address. It is recommended that you add a 0.0.0.0/0 IP Address by clicking on the ALLOW ACCESS FROM ANYWHERE button so you can access your cluster with any device with your username and password. You can also Add an IP Address for temporarily by enabling that option. After doing that click on the Confirm button to add the IP Address.

How to Connect MongoDB Atlas Cluster From an Application?

MongoDB Atlas is a Cloud-based NoSQL Document type database that provides a scalable and secure platform for managing the MongoDB Database. In this article, We are going to learn about How to Create a New MongoDB Atlas Cluster, Create of New User, Whitelist your IP Address, and How you can Get a Connection URL to Connect the MongoDB Atlas Cluster with your Application.

Similar Reads

Create a MongoDB Atlas Account and Cluster

Step 1: Create a New Account...

Create a New Database User

After completing registration you will be redirected to the Quick Start page in a Security Section, where you have to create a new database user and Whitelisting your IP Address by which you can access your Database....

How to Whitelist Your IP Address

It is necessary to whitelist your IP Address by which you can access your database. it is like giving permission for your computer to connect to the database....

Connection String and MongoDB Driver

Step 1: Navigate to Connect Page...

Example: Connect MongoDB Cluster with Node.js

In this example, We are going to use a Node.js driver to connect with a Node.js Application. Follow this below steps to create and connect your application with Cluster....

Conclusion

In conclusion, this article will help you in detail to connect your application with MongoDB Atlas Cluster. It covers step-by-step guide to Create an Account, New User, Whitelisting of IP Address and How you can get a Connection String. It also covers an Example of connecting a Node.js Application with a MongoDB Cluster....