Files
alfred-proxy/open-firewall.bat

22 lines
607 B
Batchfile
Raw Permalink Normal View History

@echo off
REM Open Windows Firewall for Alfred Proxy
REM Right-click this file and select "Run as administrator"
echo Opening firewall for Alfred Proxy (port 18790)...
netsh advfirewall firewall delete rule name="Alfred Proxy" >nul 2>&1
netsh advfirewall firewall add rule name="Alfred Proxy" dir=in action=allow protocol=TCP localport=18790
if %errorlevel% equ 0 (
echo.
echo SUCCESS: Firewall rule created!
echo Port 18790 is now open for incoming connections
) else (
echo.
echo ERROR: Failed to create firewall rule
echo Make sure you ran this as Administrator
)
echo.
pause