Robo 3T Error : Network is unreachable

2019-04-18 15:21发布

I am trying to connect Robo 3T to my online database and it doesn't seem to be working. I am able to connect to local database with it. I tried connecting using MongoDB Compass and the Details and Auth are working fine and I am able to connect. But when I connect with the same details in Robo 3T, it doesn't seem to be working. How do I fix this? I am using Robo 3T Version 1.1 I tried same with Robomongo 1.0, and still getting the same error

Error Dialog

9条回答
我命由我不由天
2楼-- · 2019-04-18 16:07

Start the MongoDB service from the task manager. Worked for me.

In my case both mongod and mongo.exe was throwing a 100 error code.

查看更多
祖国的老花朵
3楼-- · 2019-04-18 16:10

Just change your bind_ip in /etc/mongod.conf from 127.0.0.1 to 0.0.0.0 then restart the service, and it works for me~

查看更多
我只想做你的唯一
4楼-- · 2019-04-18 16:11

I also meet this problem when I use Robo 3T on Mac. I think there are some things you need to check to help you know what's the problem.

First try to ping the mongo server in your terminal to see whether you can get responses. If so, that's means you may set wrong mongo config in you Robo 3T.

If you cannot get the response, that means there is something wrong with your network. You should check your DNS and your network gateway. For example my DNS is 172.16.* and my network gateway (execute ifconig and check en0) is 172.17.*. And they are not belong to the same network segment. (Actually, even if they are on the same network segment, things won't work if someone polluted your DNS server.)

That's the problem. The DNS that you are using cannot interpret your mongo host correctly. Someone may had polluted this DNS server.

You can have a try on ping xxx(your mongo-server) @8.8.8.8, which will use 8.8.8.8 as your DNS. If everything goes well, then you get the sollution.

Sollution: Manually set DNS for your devices. For example, Google's public DNS, 8.8.8.8 and 8.8.4.4.

Actually, if you run dig xxx(your mongo-server) before and after you manually set DNS, you may find the response Ip differently.

查看更多
登录 后发表回答