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.