I am trying to machine for development
Error while Connecting to Local Mongo Database
Connection failed.
SERVER [localhost:27017] (Type: UNKNOWN)
|_/ Connection error (MongoSocketOpenException): Exception opening socket
|____/ Socket error: Connection refused: connect
Issue:![](https://blogger.googleusercontent.com/img/a/AVvXsEgG3xGqRYir1Ifh-hMCvyDc6pP5U4Wt0QzTjqKltfhB29_DqrOODi4YgL3QuzcdxSIVj03Wg9oMzSt2-5SEPyuIHR6aflsL-dHmqZutbhWT1x8n2jctD7JIe83Zpd4iLD3CooJh60wMHd46tNizZf91sEC_C--RYAilpDgwKDKLcyMnuMxywC50quTwEg=s16000)
MongoSocketOpenExceptions on Windows local mongo connection
Unable to bindIp and port
Solution:
- Make sure MongoDB is installed on Machine
- Open file mongod.cfg `C:\Program Files\MongoDB\Server\5.0\bin\mongod.cfg`
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1
Comments
Post a Comment