Connect to Mongo DB on a remote server

How can get a connection string to a remote mongo DB server that has been installed via package manager on linux centos server(Digital Ocean)?

something like mongodb://user:password@mymongodbbox.mydomain.com should work for a default installation if it’s configured to allow remote connections.