In this scenario, you enable firewall but still need to use file sharing to share file.
Step:
- Open Windows Firewall
- Click Start
- Open Control Panel and search for “Windows Firewall”
- Click Advanced Settings
- Click Inbound Rule
- 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)