When turning on Firewall, please assure that “File and Printer Sharing” on current network profile is allowed. Also, please turn on the following port: 135, 137, 138, 139, 445. For more information, please refer to the following article:
All related Ports:
Service overview and network port requirements for the Windows Server system