Set Up Atlas Connectivity

Deployment Type:
Client:

    Author: MongoDB Documentation Team

    This guide will show you how to set up your Atlas cluster for connections from a client. You will:

    • add your IP address to the IP access list to allow access to your Atlas cluster
    • locate your connection string and copy it

    Time required: 15 minutes

    What You’ll Need

    Procedure

    1

    Login to Atlas

    Login to Atlas.

    2

    Click the Connect button

    Click the connect button on the cluster management panel. The following Atlas screenshot shows the connect button:

    ../../_images/connect_panel.png
    3

    Add your IP address to the IP access list and select your connection method

    In the Setup connection security step in the modal window, check to make sure your IP address is in the IP access list for Atlas connections. If it is not, add it.

    The following Atlas screenshot shows the options for adding IP addresses in the Atlas UI:

    ../../_images/connectionstringwhitelist.png

    If your cluster already has one or more IP access list entries, you won’t have access to the button to add your IP address in the modal. Instead, use the following procedure to add your IP address to the IP access list:

    1. Exit the modal window.
    2. Click Network Access under the Security section in the Atlas UI.
    3. Click the IP Access List tab.
    4. Click the green Add IP Address button.
    5. Add your IP address.
    6. Return to the Clusters Overview tab.
    7. Click the Connect button and proceed.

    To learn more about adding IP addresses to the IP access list, see Configure IP Access List Entries in the Atlas documentation.

    4

    Copy the connection string

    In the Choose a connection method step in the modal window, select the button marked Connect with the Mongo Shell.

    The following Atlas screenshot shows the connection option buttons:

    ../../_images/connection-method.png

    Follow the instructions for your platform.

    In the Choose a connection method step in the modal window select the button marked Connect with MongoDB Compass.

    The following Atlas screenshot shows the connection option buttons:

    ../../_images/connection-method.png

    Follow the instructions for your version of Compass.

    In the Choose your connection method step in the modal, select the button marked Connect Your Application.

    The following Atlas screenshot shows the connection option buttons:

    ../../_images/connection-method.png

    Follow the instructions for your driver language and version.

    In the Choose your connection method step in the modal, select the button marked Connect Your Application.

    The following Atlas screenshot shows the connection option buttons:

    ../../_images/connection-method.png

    Follow the instructions for your driver language and version.

    In the Choose your connection method step in the modal, select the button marked Connect Your Application.

    The following Atlas screenshot shows the connection option buttons:

    ../../_images/connection-method.png

    Follow the instructions for your driver language and version.

    In the Choose your connection method step in the modal, select the button marked Connect Your Application.

    The following Atlas screenshot shows the connection option buttons:

    ../../_images/connection-method.png

    Follow the instructions for your driver language and version.

    In the Choose your connection method step in the modal, select the button marked Connect Your Application.

    The following Atlas screenshot shows the connection option buttons:

    ../../_images/connection-method.png

    Follow the instructions for your driver language and version.

    Summary

    If you have successfully completed this guide, you will now have your IP address in the Atlas IP access list, and an Atlas connection string in your copy buffer.

    What’s Next