If you are having issues sharing files using a firewall you can fix the issue using these ports.
Port Protocol Scope
554 TCP local subnet only
1900 UDP local subnet only
2177 TCP, UDP local subnet only
2869 TCP local subnet only
5004-5005 UDP local subnet only
10243 TCP local subnet only
10280-10284 UDP local subnet only
7000-7007 UDP all subnets