How to connect to my remote MongoDB server

When you add your MongoDB to your application, it generates credentials , you can find the credentials on the mongodb application with the credentials you can create the mongodb connection uri string like this: mongodb://[username]:[password]@[hostname]:[port]/[dbname]

1 Like