Juste3alfaz
Juste3alfaz

Reputation: 295

Acceesing MongoDB server on Azure VM

did anyone have by a chance a good article for installing MongoDB on ubuntu Server 14. I am using MongoDb server installed on VM Ubuntu 14 on Azure, and I use this tutroial, with last version. I add the port of mongo 27017 too. And I connect to it directly and add Database with some collections. I can log into mongo by Putty, and access it files, even the setting is right. But I can't access by RoboMongo or even in the browser can give me message like : It looks like you are trying to access MongoDB over HTTP on the native driver port.

enter image description here ![enter image description here]2 enter image description here

I don't know where is the problem

Update: I can access by SSH but not directly, as you see enter image description here

Upvotes: 1

Views: 538

Answers (1)

David Makogon
David Makogon

Reputation: 71030

Take a look at your mongod.conf, where your bindIp is 127.0.0.1 (localhost). This is going to prevent you from reaching mongodb from anywhere else. Try changing that bindIp to 0.0.0.0 and restart the mongod process.

Upvotes: 3

Related Questions