@echo off chcp 65001 >nul title Liberar Firewall - DEVSYS 7180 net session >nul 2>&1 if %errorlevel% neq 0 ( echo Solicitando permissao de administrador... powershell -Command "Start-Process '%~f0' -Verb RunAs" exit /b ) netsh advfirewall firewall delete rule name="DEVSYS 7180" >nul 2>&1 netsh advfirewall firewall add rule name="DEVSYS 7180" dir=in action=allow protocol=TCP localport=7180 echo. echo [OK] Porta 7180 liberada no firewall do Windows! echo Agora execute "Iniciar Servidor Rede.bat" normalmente. echo. pause