robomongo连接mongo数据库一直提示MongoSocketOpenException: Exception opening socket
安装mongo的机器能ping通,mongo服务也是开启,但连接的时候一直timeout 连接不上,具体报错:
SERVER [192.168.*.*:27017] (Type: UNKNOWN)
|_/ Connection error (MongoSocketOpenException): Exception opening socket
|____/ Socket error: Connection refused: connect
Details:
Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}.
Client view of cluster state is {type=UNKNOWN, servers=[{address=192.168.*.*:27017, type=UNKNOWN, state=CONNECTING,
exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused: connect}}]
{com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused: connect}}]
网上找了下原因,有的说是防火墙,有的说是某些软件打开导致比如360wifi,防火墙的问题我也按照改了,无法解决,特来求助!