In this scenario, you enable firewall but still need to use file sharing to share file.

Step:

  1. Open Windows Firewall
    • Click Start
    • Open Control Panel and search for  “Windows Firewall”
    • Click Advanced Settings
  2. Click Inbound Rule
  3. In the right pane, find the below rules and and right-click each rules. Then, choose Enable Rule
    • File and Printer Sharing (NB-Name-In)
    • File and Printer Sharing (NB-Session-In)

enable rule