Robo 3T Error : Network is unreachable

62,831

Solution 1

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~

Solution 2

A better solution is to comment out or remove the bindIp setting from the config file /etc/mongod.conf

You must restart the service for the change to take effect

Solution 3

If you get the following error then you should also check the following:

Pciture showing ROBO 3T auth options

The atlas servers at least require this setting, if you do not choose it, then you generally get the Network is unreachable message.

Also if you are using Atlas then you should check the Authentication tab and select SCRAM-SHA-1, however this generally results in an authentication error not a network unreachable one.

Solution 4

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.

Solution 5

Go Inside bin folder of MongoDB and run mongod command:- C:\Program Files\MongoDB\Server\4.2\bin then open command prompt at this location and run mongod command & then try to connect with Robo 3T . It works for me.

Also create data folder inside your C: drive & then create a db named folder inside data folder. that's it.

Share:
62,831
Hisham Mubarak
Author by

Hisham Mubarak

Full stack developer, focused on Javascript frameworks.

Updated on February 01, 2022

Comments

  • Hisham Mubarak
    Hisham Mubarak over 2 years

    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