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