I have 2 raspberry pi 3 on the same local network, with mongodb + mongoexpress + nodered, installed in the same way on each one.
the first one is for 192.168.1.1, the second is 192.168.1.2, when I make requests from the first to the second using the node mongodb2 of the kind, mongodb: //192.168.1.2: 27017 / db it works perfectly, by cons on the second to the first when I try a request on mongodb: //192.168.1.1: 27017 / db, I have a message like: MongoError: failed to connect to server [192.168.1.1:27017] on first connect [MongoError: connect ECONNREFUSED 192.168.1.1:27017].
I prescribe that the two databases work perfectly.
I do not understand where the problem comes from.
have you an idea about this?