@echo off
netsh advfirewall firewall add rule name="LS-INFOSERVER Default HTTP IN" protocol=TCP dir=in localport=9300 action=allow
netsh advfirewall firewall add rule name="LS-INFOSERVER Default HTTP OUT" protocol=TCP dir=out localport=9300 action=allow
netsh advfirewall firewall add rule name="LS-INFOSERVER Default HTTPS IN" protocol=TCP dir=in localport=9301 action=allow
netsh advfirewall firewall add rule name="LS-INFOSERVER Default HTTPS OUT" protocol=TCP dir=out localport=9301 action=allow
netsh advfirewall firewall add rule name="LS-INFOSERVER Default Discovery In" protocol=UDP dir=in localport=9300 action=allow
netsh advfirewall firewall add rule name="LS-INFOSERVER Default Discovery OUT" protocol=UDP dir=out localport=9300 action=allow
pause