Unable to access Windows MongoDB server via Compass: Connection Timed Out

Good day MongoDB Community,

I have setup a Windows MongoDB server as a service and another PC in the same network going to connect using Compass.

I have updated the bindIp in mongod.cfg as such:

# network interfaces
net:
  port: 27017
  bindIp: 10.xx.xx.xx

I tried connecting via Compass mongodb://10.xx.xx.xx:27017 but connection timed out.
I even added bindIp in Start parameters when running the service but still same result.
Every update, I made sure service is stopped and restarted.

Are there other steps I need to perform to allow the on-premise MongoDB server to be accessed via Compass?

Hi @joseph-d-p ,
From the documentation:
“Make sure that your mongod and mongos instances are only accessible on trusted networks. If your system has more than one network interface, bind MongoDB programs to the private or internal network interface.”
https://www.mongodb.com/docs/manual/core/security-mongodb-configuration/#:~:text=Make%20sure%20that%20your%20mongod%20and%20mongos%20instances%20are%20only%20accessible%20on%20trusted%20networks.%20If%20your%20system%20has%20more%20than%20one%20network%20interface%2C%20bind%20MongoDB%20programs%20to%20the%20private%20or%20internal%20network%20interface.

So, you’ve bind the correct nic in your server?
If you haven’ t particular requirement, set the bind ip in this way:

# network interfaces
net:
  port: 27017
  bindIp: 0.0.0.0

Regards