How to Configure your Firewall Rules for Windows Activation

Here's how to configure the firewall rules for Windows activation

Reading time icon 4 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Key notes

  • The Windows activation process can be interrupted due to different reasons, and one of them is due to the Firewall rules.ย 
  • Other reasons include outdated Windows version, hardware issues, incorrect or pirated product license keys, or if the activation server is busy.ย 
  • However, if it's due to the Windows firewall blocking the activation, configuring the firewall rules may help fix the issue.ย 

If you are facing difficulties during Windows activation, it could be due to the firewall blocking the port or the program, and hence, it’s recommended to configure the rules.

When the Windows Firewall is turned on, it tries to protect your device from any external threats by disabling the internet connection, hence preventing the activation process.

What ports need to be open for Windows activation?

The ports that need to be enabled for Windows activation are as follows:

  • TCP port 80 – The default port for HTTP.
  • TCP port 443 – This is the default port for HTTPS.
  • UDP port 3478 – One of the default ports for UDP.
  • UDP port 3479 – Another default port for UDP.

The above are the default ports required for the Windows activation process; however, if you are facing an issue, chances are that the administrator has changed the port values.

If you want to use WSUS for tasks like deployment or patch management while upgrading Windows 11, you can configure the server to use alternate ports.

In this post, we will guide you on configuring the firewall rules for Windows activation.

How do I enable Firewall rules for Windows activation?

Before you proceed with the below process, make sure that you run the below checks to rule out other issues:

If none of the above steps help you to fix the issue, you can try configuring the Firewall rules to facilitate Windows activation as shown below.

  1. Press the Win + R keys to launch the Run console, type firewall.cpl in the search bar, and hit Enter. type firewall.cpl in run console
  2. Next, on the Windows Defender Firewall screen, click on Advanced settings on the left. advanced settings
  3. In the Windows Defender Firewall with Advanced Security screen, select Inbound Rules on the left and click on New Rule under Action on the right. new inbound rule
  4. You will now see the New Inbound Rule Wizard window. Here, select Port and press Next. select port in New Inbound Rule Wizard
  5. On the next screen, go to does this rule apply to TCP or UDP? and select TCP.
  6. Next, under Does this rule apply to all local ports or specific local ports?, select Specific local ports and enter the port value. Press Next. enter port value
  7. Now, on the next page, select Allow the connection and click on Next. Allow the connection
  8. Next, select all the profiles Domain, Private and Public, and press Next. Domain, Private and Public
  9. On the next page, name the new rule, for example, something like, allow Windows activation, add a description (optional), and click on Finish. name new rule as allow Windows activation

This way, you can successfully create Windows Defender Firewall rules to allow Windows activation.

What are the default Windows Firewall rules?

By default, the Windows Defender Firewall will block everything unless there’s an exception rule created. This setting overrides the exceptions.

For example, the Remote Desktop feature automatically creates firewall rules when enabled.

How to configure Windows Firewall?

  1. Launch the Run console by pressing the Win + R keys simultaneously.
  2. Type firewall.cpl in the search bar and hit Enter to open the Windows Defender Firewall screen. type firewall.cpl in run console
  3. Here, click on Turn Windows Defender Firewall on or off on the left. turn windows defender firewall on or off
  4. Next, in the Customise Settings window, select Turn off Windows Defender Firewall for both Private and Public network settings. Press OK. turn off windows defender firewall
  5. Once done, return to Windows Defender Firewall home page. Here, click on Advanced settings. advanced settings
  6. Next, in the Windows Defender Firewall with Advanced Security screen, select Inbound Rules on the left. inbound rules
  7. On the right, check for a rule that doesn’t have a green tick next to it, and click on Enable Rule on the right. Repeat this for all the rules with no green tick. enable rule without green tick
  8. Now, on the left, select Outbound Rules and repeat this process for all the rules with no green tick.

You have successfully configured the Windows Firewall rules, and there should be no problem during Windows Activation.

At the same time, you may want to confirm if the Firewall is blocking a port or a program, and hence, we guide you on how to check the firewall settings and configure them. For more information about firewalls, check our guide on how to remove duplicate rules in Windows Firewall.

However, if it’s the Windows activation key that’s not working, you can refer to our comprehensive guide for some practical solutions.

If you encounter any other issues during Windows activation, do let us know in the comments box below.

More about the topics: firewall, Windows 11