We're using a MongoDB replica on Windows using default ports (27017).
Our servers are all behind firewalls and we want to configure the firewall to only allow the default port open.
However, when looking at netstat, we see the following ports used:
[mongod.exe] TCP 0.0.0.0:27017 SERVER-NAME:0 LISTENING [mongod.exe] TCP 0.0.0.0:47001 SERVER-NAME:0 LISTENING
Why is mongo suing the dynamic port 47001? we had to open the dynamic port on the firewall (in addition to the default 27017) to allow other servers to access it.
Why does mongo need the dynamic port? can I at least force it to use a preconfigured port?