I am creating an API using MongoDB and Codeigniter. I want to connect to my database using an IP-address (not working) instead of using localhost (working fine). Because I need to have the MongoDB on a seperate server.
I tried to just change from localhost to the IP-address in the configuration file for the Codeigniter library but then I cannot connect.
I am using this Ci MongoDB library: https://github.com/alexbilbie/codeigniter-mongodb-library
How can I do this?