How to configure mongo db

please help me how to configure the config/mongo.yml file to connect it with the remote mongo server.

@altiuscbe I think you’ll need to give a little more information. What have you tried so far? What errors have you encountered?

First Thank you for the replay.i have installed gem ‘mongoid’, ‘~> 5’ gem and create the mongoid.yml file using the command rails g mongoid:config.i have also installed mongo shell also and i have my remote mongo server. how to connect remote mongo with my rails project.i tried to connect it using the command mongo 192.168.xx.xx:271XX and it connected and show the avalable dbs.but when i configure mongoid.yml it is not connected ???