How to Configure your Firewall Rules for Windows Activation

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

by Madhuparna Roy
Madhuparna Roy
Madhuparna Roy
A diploma holder in computers and with a keen interest in technology, Madhuparna is passionate about writing How-to guides and helping people solve the most intricate Windows issues.... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • 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. 

To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro has been downloaded by 0 readers this month.

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 are needed to be enabled for Windows activation are as below:

  • 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 port values have been changed by the administrator.

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 how to configure 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:

Expert tip:


Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.

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.

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.

Still having issues? Fix them with this tool:


If the advices above haven't solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

This article covers:Topics: