I have two computers within the same network. One of them is a server, which serves a publicly accessible website; the other one is for my daily use.
Both computers are using Microsoft technologies. (Windows Server 2019/Windows 10)
I have a MongoDB instance running on the server, and I want to connect it using my daily PC.
However, if I try to connect to the MongoDB instance (mongodb://192.168.50.33:27017
, 192.168.50.33
is the local IP address of the server PC, 27017
is the port for the instance), it always timeout using
- Google Chrome: If the connection works, I should see a message saying
It looks like you are trying to access MongoDB over HTTP on the native driver port.
. - MongoDB Compass: If the connection works, I should be able to see the content inside the database.
I have tried/setup the following:
Setup an inbound firewall rule with the following properties:
- Allow connections
- Protocol:
TCP
- Ports:
- Local:
All ports
- Remote:
27017
- Local:
- Scope:
Any Local/Remote IP addresses
- Apply to
Domain
,Private
,Public
Checked the firewall log. Saw that the connection from my daily PC is allowed through the firewall.
Set up a port forwarding on the router (ASUS RT-AC58U) which connects to both of my computers with the following properties:
- Port Range:
27017
- Local Port:
27017
- Local IP:
192.168.50.33
- Port Range:
Set the
net.bindIp
of the configuration of the MongoDB instance to be0.0.0.0
Any ideas?