I cannot access my mongodb from internet ,Anybody can help me?

Posted by VicoWu110 on Super User See other posts from Super User or by VicoWu110
Published on 2013-11-07T03:38:14Z Indexed on 2013/11/07 4:00 UTC
Read the original article Hit count: 471

Filed under:
|
|

I am using Mongodb database ,which is installed in my ubuntu with the ip address 126.22.252.25. The ubuntu version info is Ubuntu 12.04.3 LTS.

My mongodb use the default 27017 port .On this local machine , I can use command "mongo --host 126.22.252.25" on the local machine to access, but I cannot use this command on any other linux mathine to access the db,nor can I use "telnet 126.22.252.25 27017" on my windows machine.I am sure 126.22.252.25 machine is accessable from internet because I can use winSCP and secureCRT to login to it.I run command "netstat -tnlp" , it shows below:

tcp        0      0 0.0.0.0:27017           0.0.0.0:*               LISTEN

I have already change the /ect/mongodb.conf file , modifying bind_ip parameter from 0.0.0.0 to 126.22.252.25

So ,anyone can help me?

© Super User or respective owner

Related posts about ubuntu

Related posts about port