為了確保您的主機安全,我們十分建議您不要進行關閉防火牆的動作,如有需要服務,您應該透過更改 Windows 內建的『具有進階安全性的 Windows Dedenfer 防火牆』規則讓應用程式可以使用。
開啟 Windows 功能表→Windows 系統管理工具→具有進階安全性的 Windows Defender 防火牆。
![](https://kb.fast-line.tw/wp-content/uploads/2020/06/1593424094-de0cff3abefba808a575b4d79e5240d9.png)
點選輸入規則,並點選右方的新增規則。
![](https://kb.fast-line.tw/wp-content/uploads/2020/06/1593424121-97ff4f7a58721c1a54389ae47afdd1fc-1024x643.png)
![](https://kb.fast-line.tw/wp-content/uploads/2020/06/1593424292-da130f3ef624fba0f66253139f06192e.png)
依據需求開啟 TCP 或是 UDP Port。
例如:
Minecraft 預設為 TCP 25565。
FiveM Server 預設為 TCP 與 UDP 30120。
網頁伺服器 TCP 80 與 443。
![](https://kb.fast-line.tw/wp-content/uploads/2020/06/1593424305-67711d96961c01cbb02ecb9b4c29e12c.png)
![](https://kb.fast-line.tw/wp-content/uploads/2020/06/1593424384-b3fc8a9fccab9569617a3b183a869c62.png)
![](https://kb.fast-line.tw/wp-content/uploads/2020/06/1593424398-d6b5e8ba43f600e18563249f5727fe24.png)
![](https://kb.fast-line.tw/wp-content/uploads/2020/06/1593424406-fe8c339b83a24fbc0dda02faa938ea2f.png)
即可完成操作。
也可以使用指令的方式來開啟,透過開啟命令提示字元並輸入以下指令即可開通。
FiveM 開防火牆指令(兩者皆須執行):
netsh advfirewall firewall add rule name="Allow FiveM UDP" protocol=UDP dir=in localport=30120 action=allow
netsh advfirewall firewall add rule name="Allow FiveM TCP" protocol=TCP dir=in localport=30120 action=allow
Minecraft 開防火牆指令:
netsh advfirewall firewall add rule name="Allow Minecraft TCP" protocol=TCP dir=in localport=25565 action=allow
網頁伺服器開防火牆指令:
netsh advfirewall firewall add rule name="Allow Web http" protocol=TCP dir=in localport=80 action=allow
netsh advfirewall firewall add rule name="Allow Web https" protocol=TCP dir=in localport=443 action=allow