Access mongo db from another IP

#1

I’m need to access mongodb from another computer on the network, there I must insert a few records on a collection and read some of them as well. I tried with BIND_IP=0.0.0.0 and BIND_IP=192.168.1.10 and didn’t work. Also tried with with ssh -L 3001:localhost:3001 user@192.168.1.11 and I was able to connect and insert contents but it might not be the ideal solution as I need to keep this ssh connection open. How can I solve this problem?

1 Like
#2

I have the same question with you~~ still finding the answer :joy:

#3

Hi @cecilcosta
Have you restart mongodb service ?

#4

BIND_IP is used when starting up meteor and mongo.

1 Like
#5

Been investigating this issue, it looks as though you want to BIND_IP as 0.0.0.0 when running Meteor, it defaults to 127.0.0.1 – which causes a whacky issue.

On a regular production deployment, you would just change that in your MongoDB settings. But I’m building a dev server and am frustrated this isn’t working. Will report back when working.