diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-03-26 13:51:27 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-03-26 13:51:27 -0400 |
| commit | ac07c2072ad33e2813924bae72007752904ee823 (patch) | |
| tree | 4ab3c9acee18866a179ba4e4d8dfa3b93211e613 /MediaBrowser.ServerApplication/Native/RegisterServer.bat | |
| parent | 661acc256aab7f94c5071c1816b240b705c1cf85 (diff) | |
Update firewall authorization
Diffstat (limited to 'MediaBrowser.ServerApplication/Native/RegisterServer.bat')
| -rw-r--r-- | MediaBrowser.ServerApplication/Native/RegisterServer.bat | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MediaBrowser.ServerApplication/Native/RegisterServer.bat b/MediaBrowser.ServerApplication/Native/RegisterServer.bat index 57e93683e..27f863d58 100644 --- a/MediaBrowser.ServerApplication/Native/RegisterServer.bat +++ b/MediaBrowser.ServerApplication/Native/RegisterServer.bat @@ -1,6 +1,7 @@ rem %1 = udp server port rem %2 = http server port rem %3 = https server port +rem %4 = exe path if [%1]==[] GOTO DONE @@ -17,6 +18,12 @@ if [%3]==[] GOTO DONE netsh advfirewall firewall delete rule name="Port %3" protocol=TCP localport=%3 netsh advfirewall firewall add rule name="Port %3" dir=in action=allow protocol=TCP localport=%3 +if [%4]==[] GOTO DONE + +netsh advfirewall firewall delete rule name="Emby Server" +netsh advfirewall firewall add rule name="Emby Server" dir=in action=allow protocol=TCP program=%4 enable=yes +netsh advfirewall firewall add rule name="Emby Server" dir=in action=allow protocol=UDP program=%4 enable=yes + :DONE Exit
\ No newline at end of file |
