Configure Windows netsh Firewall for MongoDB - MongoDB Manual
On Windows Server systems, the program provides methods for managing the Windows Firewall. These firewall rules make it possible for administrators to control what hosts can connect to the system, and limit risk exposure by limiting the hosts that can connect to a system. This document outlines basic Windows Firewall configurations.
https://docs.mongodb.com/manual/tutorial/configure-windows-netsh-firewall/