@echo off echo Abrindo portas 30120 e 40120... netsh advfirewall firewall add rule name="Abrir Porta 30120 TCP" dir=in action=allow protocol=TCP localport=30120 netsh advfirewall firewall add rule name="Abrir Porta 30120 UDP" dir=in action=allow protocol=UDP localport=30120 netsh advfirewall firewall add rule name="Abrir Porta 40120 TCP" dir=in action=allow protocol=TCP localport=40120 netsh advfirewall firewall add rule name="Abrir Porta 40120 UDP" dir=in action=allow protocol=UDP localport=40120 echo Concluido! pause