In this scenario, you enable firewall but still need to use file sharing to share file.
- Open Windows Firewall
- Click Start
- Open Control Panel and search for “Windows Firewall”
- Click Advanced Settings
- Click Inbound Rule
- In the right pane, find File and Printer Sharing (Echo Request – ICMPv4-In) rules and and right-click each rules. Then, choose Enable Rule