To solve the problem that software cannot be connected to the network, you can add the program to the Windows Firewall exception. The specific steps are as follows: 1. Open Control Panel > Windows Defender Firewall, click Allow Apps or Functions to pass through the Firewall, click Change Settings, select Allow another App, browse and select the program's .exe file, and then select the dedicated and public networks; 2. Check the inbound and outbound rules in the Advanced Security Firewall to confirm whether there are rules that block the program, and if there are any, disable or modify to allow; 3. Use the command line to quickly release, execute the netsh advfirewall firewall add rule name="Allow MyApp" dir=in program="C:\\Program Files\\MyApp\\myapp.exe" action=allow command to add inbound rules, or add the dir=out parameter to handle outbound traffic.
Sometimes after installing a new software, you will find that it cannot be connected to the Internet. At this time, the Windows firewall may be "blocking the way". It is not complicated to let an application pass through the firewall. Just find the correct setting path and you can do it in a few steps.

Add program exception: manually release an intercepted app
If you find that a program cannot access the network, you can manually add it to the firewall allow list.
The operation method is as follows:
- Open Control Panel > Windows Defender Firewall
- Click on the Allow App or Feature on the left to go through the Windows Defender Firewall
- Click Change Settings in the list (Administrator permission is required)
- Click Allow another application , and browse the local file system to select the program you want to release (usually the
.exe
file in the installation directory) - After selecting it, click "Add" and make sure that both "Dedicated" and "Public" are selected (unless you know which network you only need)
Note: Some programs will automatically pop up firewall prompts, and then select "Allow connections" to do so. If there is no automatic prompt, you have to add it manually.
![]()
Check if existing rules block the app
Sometimes it is not that it is not added, but that there are specific rules that block it.
You can check this way:
- Enter the Advanced Security Windows Defender Firewall
- Select Outbound Rules or Inbound Rules on the left
- Find entries related to the target program in the list on the right
- If you see that a rule is "block connection", right-click and select "Properties" to see if its program path matches your App
- If it is confirmed that it is a mistake, you can temporarily disable this rule or modify it to allow
This approach is suitable for situations where exceptions have been tried but the problem remains the same.

Quick release of the app using the command line (advanced operations)
If you are familiar with the command prompt, you can also use one line of command to release a program:
netsh advfirewall firewall add rule name="Allow MyApp" dir=in program="C:\Program Files\MyApp\myapp.exe" action=allow
The above command means: add an inbound rule to allow programs with specified paths to pass through the firewall.
Similarly, you can also add dir=out
to handle outbound traffic.
This method is suitable for batch processing or scripting automation settings.
Basically these are the operations. The key to releasing an app is to correctly identify the program path, select the appropriate network type, and pay attention to whether there are conflicting rules. Although the steps seem a bit too many, it is very fast to actually operate. The key is not to choose the wrong program path.
The above is the detailed content of How to allow an app through Windows Firewall. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

If you want to cancel the password login for Windows 11, there are three methods to choose: 1. Modify the automatic login settings, uncheck "To use this computer, users must enter their username and password", and then restart the automatic login after entering the password; 2. Switch to a passwordless login method, such as PIN, fingerprint or face recognition, configure it in "Settings>Account>Login Options" to improve convenience and security; 3. Delete the account password directly, but there are security risks and may lead to some functions being limited. It is recommended to choose a suitable solution based on actual needs.

Like many Windows users, I am always on the lookout for ways to boost my productivity. Command Palette quickly became an essential tool for me. This powerful utility has completely changed how I interact with Windows, giving me instant access to the

There are three main ways to uninstall programs on Windows 11: 1. Uninstall through "Settings", open the "Settings" > "Apps" > "Installed Applications", select the program and click "Uninstall", which is suitable for most users; 2. Use the control panel, search and enter "Control Panel" > "Programs and Functions", right-click the program and select "Uninstall", which is suitable for users who are accustomed to traditional interfaces; 3. Use third-party tools such as RevoUninstaller to clean up more thoroughly, but pay attention to the download source and operation risks, and novices can give priority to using the system's own methods.

To run programs as administrator, you can use Windows' own functions: 1. Right-click the menu to select "Run as administrator", which is suitable for temporary privilege hike scenarios; 2. Create a shortcut and check "Run as administrator" to achieve automatic privilege hike start; 3. Use the task scheduler to configure automated tasks, suitable for running programs that require permissions on a scheduled or background basis, pay attention to setting details such as path changes and permission checks.

This might not be at the top of the list of features people want to return from Windows 10, but it still offers some usefulness. If you'd like to view the current minutes and seconds without turning on that display in the main taskbar clock (where it

Windows 10 KB5061087 is now rolling out as an optional preview update for those on version 22H2 with Start menu fixes.

Microsoft confirmed that the DHCP server service might stop responding or refuse to connect after the June 2025 Update for Windows Server.

In the past, I always viewed the i5 lineup as anemic when it came to gaming. However, in 2025, a mid-range CPU is more than enough to start your gaming journey. Many games still don’t fully utilize multi-core performance as well as they could, so
