connect to remote mongo db server using connection string c# code example Example: mongodb local connection string mongodb://localhost:27017/mydbname