How to Configure the Windows Firewall

This article will show you how to configure the Windows firewall.
1. Open Windows Defender Firewall
Click the Start button, search for Windows Defender Firewall and click on it to open it.
2. Open Advanced Settings
Click Advanced Settings in the left-hand panel to open the Windows Defender Firewall with Advanced Security window.
3. Create a New Inbound Rule
Click Inbound Rules in the left-hand panel, then click New Rule in the right-hand panel.
4. Select Rule Type
Select the type of rule you want to create - Port, Program, Predefined, or Custom - and click Next.
5. Configure the Rule
Follow the on-screen steps to specify the port number or program the rule applies to, and choose whether to Allow or Block the connection.
6. Name and Save the Rule
Enter a name and description for the rule and click Finish to save it.
Next: What Is a Firewall? explains what a firewall does and why the rules matter.