For details about opening ports, refer to your firewall documentation.
For details on Setting Up a Fixed Port for WMI, refer to:
https://docs.microsoft.com/en-us/windows/desktop/WmiSdk/setting-up-a-fixed-port-for-wmi