Hi @家豪 邬
Here are some steps you can follow:
- To enable Windows Defender Firewall and configure the default behavior, use the Windows Defender Firewall with Advanced Security snap-in. You can open it by typing WF.msc in the Start menu. For more details, see Best practices for configuring Windows Defender Firewall.
- To open a port on Windows Defender Firewall for inbound traffic, you need to create a new inbound rule. You can do this by right-clicking Inbound Rules in the left pane and selecting New Rule. You will need to specify the protocol (TCP or UDP), the port number, and the action (allow or block) for the rule. For more details, see How Do I Open a Port on Windows Firewall?.
- To forward traffic from one device to another device on your network, you need to enable port forwarding on Windows Defender Firewall. You can do this by creating a new inbound rule with the Custom option. You will need to specify the protocol, the local port, the remote port, and the remote IP address for the rule. For more details, see How to Set Up Port Forwarding in Windows.
Hope the information is helpful.
Best Regards,
Hania Lian
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.