از Cmd این دستور رو بزنید :
برای مثال پورت 445 :
netsh firewall add portopening protocol = TCP port = 445 name = "TCP/IP" mode = ENABLE scope = SUBNET