I have installed a MongoDB
in OpenSUSE
version 42.3. The version of MongoDB
is:
MongoDB shell version v3.4.10
In the file:
/etc/mongodb.conf
I have this configuration:
# What type of connections to allow.
net:
port: 27017
bindIp: 0.0.0.0
Which should allow me to connect remotely.
Well from a Windows
and a CentOS 7
I try to connect remotely and it tells me error.
Machines ping each other and have DNS
% of IP
%.
Remote attempt from OpenSUSE
:
mongo --host 192.168.0.173
MongoDB shell version v3.4.13
connecting to: mongodb://192.168.0.173:27017/
2018-02-18T16:55:48.921+0100 W NETWORK [thread1] Failed to connect to 192.168.0.173:27017, in(connect), reason: Network is unreachable
2018-02-18T16:55:48.923+0100 E QUERY [thread1] Error: couldn't connect to server 192.168.0.173:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed