• To disable the Firewall, go to Windows Security > toggle Microsoft Defender Firewall off for public or private networks.
  • Another way? Go to System and Security > Windows Firewall > choose Turn off Windows Defender Firewall (not recommended) for relevant networks.
  • To disable the Windows firewall, use the Command Prompt, PowerShell, Registry Editor, or Group Policy Editor.

Method1. Using Windows Security

Step 1 : Press the Windows key, type Windows Security , and click Open .

Step 2 : Navigate to the Firewall & network protection settings.

Step 3 : Select a Private network or Public network .

Note : We are going with a Public network.

Select a Private network or Public network - 1

Step 4 : Toggle off the Microsoft Defender Firewall option. In the prompt, select Yes .

Toggle off the Microsoft defender Firewall option - 2

Now, follow the same steps to disable the firewall from the Private network or vice versa. That’s it. You successfully disabled Windows Firewall.

Method2. Using Control Panel

Step 1 : Press the Windows key, type Control Panel , and click Open .

Step 2 : Go to the System and Security option.

System and Security options - 3

Step 3 : Click on Windows Defender Firewall .

Step 4 : In the left pane, click on Turn Windows Defender Firewall on or off .

click on the ‘Turn Windows Defender Firewall on or off’ option - 4

Step 5 : Now, under Customize settings for each type of network, choose the Turn off Windows Defender Firewall (not recommended) option in Private network settings and Publick network settings.

Step 6 : Click on OK to apply the changes.

OK to apply the changes - 5

Method3. Using Command Prompt

Step 1 : Press the Windows key, type Command Prompt , and click Run as administrator .

Step 2 : Type the below command and hit Enter .

netsh advfirewall set allprofile state off

Note : This command will turn off the firewall for all the network profiles.

Type the below command and hit Enter - 6

If you want to disable it for the public network profile, type the below command and press Enter .

netsh advfirewall set publicprofile state off

If you want to disable it for the private network profile, type the below command and press Enter .

netsh advfirewall set privateprofile state off

If you want to disable it for the domain network profile, type the below command and press Enter .

netsh advfirewall set privateprofile state off

You can disable Windows firewalls with any of the selected commands mentioned above. If you don’t want to do it through Command Prompt, use PowerShell.

Method4. Using PowerShell

Step 1 : Press the Windows key, type Windows PowerShell , and click Run as Administrator .

Step 2 : Type the below command and press Enter .

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
Type the below command and press Enter - 7

Method5. Using Registry Editor

Step 1 : Press the Windows key, type Registry Editor , and click Open . In the prompt, select Yes .

Step 2 : In the top bar, enter the below-mentioned address.

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile
enter the below-mentioned address - 8

Step 3 : Under the StandardProfile folder, right-click, select New , and choose DWORD (32-bit) Value .

choose 'DWORD (32-bit) Value.' - 9

Step 4: Type EnableFirewall in the name field.

Type EnableFirewall - 10

Step 5 : Double-click the new value, type 0 in the Value Data field, and press OK .

Double-click the new value - 11

Finally, reboot the system to implement the changes. And that’s it! When the system boots back up, the firewall on Windows will be disabled. If you don’t want to disable the firewall from the registry, you can use the Group Policy editor .

Method6. How to Turn Off Firewall Using Group Policy Editor

Group Policy Editor is only available in the Windows 11 Pro and Enterprise versions. If you are using Windows 11 Home Editor, you cannot use this method.

Step 1 : Press the Windows keys, type gpedit , and click Open .

Step 2 : In the left pane, under Local Computer Policy, select Computer Configuration .

select Computer Configuration - 12

Step 3: In the right pane, double-click on Administrative Templates .

Step 4 : Select Network .

Select the Network option - 13

Step 5 : Under the Network option, locate and click on Network Connections .

Step 6 : Navigate to Windows Defender Firewall .

Navigate to the 'Windows Defender Firewall.' - 14

Step 7 : Select Standard Profile .

Step 8 : In the right pane, select Windows Defender Firewall: Protect all network connections .

select 'Windows Defender Firewall: Protect all network connections.' - 15

Step 9 : Select Disabled > click on Apply > OK .

select the Disabled option - 16

There you go. Now, all you need to do is reboot Windows. And once it boots back up, the Windows Firewall will be disabled.

Firewall software monitors and controls incoming and outgoing network traffic. It runs in the background and consumes minimal resources, so disabling the firewall may not affect your system performance or internet speed.

A firewall is generally recommended for better security, as it helps protect your computer or network from unauthorized access, hackers, and malware. However, in some cases, it may cause connectivity issues. Before disabling the firewall settings, it is recommended that you check the firewall settings.

Here’s how to disable the firewall for Minecraft: Press the Windows key, type Windows Defender Firewall > select Allow an app or feature through Windows Defender Firewall > select Change Settings > under Allow apps to communicate through Windows Defender Firewall, check the box for Minecraft.

Was this helpful?