1. Home
  2. Knowledge Base
  3. Troubleshooting & Fix
  4. How to allow a program within your Windows VPS Server Firewall?

How to allow a program within your Windows VPS Server Firewall?

Windows operating system does come with an Inbuilt firewall which restricts the third-party program’s unnecessary incoming and outgoing connections. In this articles, you will learn about: How to allow a program within your Windows VPS Server Firewall?

By performing this option you are granting full authorization to the program to bypass any firewall rule for incoming and outgoing connections.

Allow Incoming Connections Of Program From Windows VPS / Server Firewall.

1. Login to Windows VPS Server, Navigate to StartAdministrative Tools → Windows Firewall with Advanced Security.

navigate-to-start-administrative-tool

open-windows-firewall-and-advanced-firewall

2. Navigate to Windows Firewall with Advanced Security → Inbound Rules.

Allow Incoming Connections Of Program From Windows VPS / Server Firewall

3. Click on “New Rule” → Select “Program

How to allow a program within your Windows VPS Server Firewall

select-program-and-click-on-next

4. Now, we need to select the program (.exe) to allow its incoming connections.

browse-the-program-and-click-on-next-inbound-firewall

5. In the Action tab, select “Allow the connection” or “Allow the connection if it is secured ”  Next.

Allow the connection: This includes connections that are protected with IPsec as well as those that are not.

Allow the connection if it is secure: This includes only connections that have been authenticated by using IPsec. Connections will e secured using the settings in IPsec properties and rules in the Connection Security Rule node.

click-on-allow-connection-inbound-rule

6. IN Profile tab, you need to select the below options and click “Next“,

Domain: This applies to when the computer connected to the corporate domain.

Private: This applies to when the computer connected to the private network.

Public: This applies to when the computer connected to the public network.

select-the-profile-inbound-rule

7. In the last step, you need to define the name for your custom Inbound Rule →  Finish.

define-name-for-inbound-connection-in-firewall

Allow Outbound Connections Of Program From Windows VPS / Server Firewall.

Many third-party applications use the custom port; allowing programs through the firewall doesn’t resolve the problem. We also need to allow their ports in the firewall to make the application operation work smoothly.

1. Login to Windows VPS Server, Navigate to Start → Administrative Tools → Windows Firewall with Advanced Security.

navigate-to-start-administrative-tool

open windows firewall and advanced firewall

2. Navigate to Windows Firewall with Advanced Security → Outbound Rules.

Allow Outbound Connections Of Program From Windows VPS / Server Firewall.

3. Click on “New RuleSelect “Program“.

click-on-new-rule-outbound-rule

click-on-new-rule-select-program

4. Now, we need to select the program to allow its incoming connections.

select-the-program-exe-outbound-rule

5. In the Action tab, select “Allow the connection” or “Allow the connection if it is secure Next.

Allow the connection: This includes connections that are protected with IPsec as well as those that are not.

Allow the connection if it is secure: This includes only connections that have been authenticated by using IPsec. Connections will e secured using the settings in IPsec properties and rules in the Connection Security Rule node.

action-tab-allow-the-connection-outbound-rule

6. IN Profile tab, you need to select the below options and click “Next“,

Domain: This applies to when the computer connected to the corporate domain.

Private: This applies to when the computer connected to the private network.

Public: This applies to when the computer connected to the public network.

Profile-section-outbound-rule

7. In the last step, you need to define the name for your custom Outbound Rule  Finish.

name-your-outbound-rule


Allow Ports Of The Application Through Firewall

Many third-party applications use the custom port; allowing programs through the firewall doesn’t resolve the problem. We also need to allow their ports in the firewall to make the application operation work smoothly.

1. Login to Windows → Search & Open Windows Firewall with Advanced Security.

select windows firwall with advanced option

2. Navigate to Inbound Rule.

Allow Incoming Connections Of Program From Windows VPS / Server Firewall

3. Click on New Rule.

click-on-new-rule-inbound-rule

4. In Rule Type, select “Port” → Next.

select-port

5. In Protocol and Ports, select UDP/TCP and specify the custom application port → Next.

navigate-to-protocol-and-ports-firewall

6. In the Action tab, select “Allow the connection” or “Allow the connection if it is secured ”  Next.

Allow the connection: This includes connections that are protected with IPsec as well as those that are not.

Allow the connection if it is secure: This includes only connections that have been authenticated by using IPsec. Connections will e secured using the settings in IPsec properties and rules in the Connection Security Rule node.

action-section-how-to-allow-echo-request-in-windows-firewall

7. In the Profile tab, you need to select the below options and click “Next“,

Domain: This applies to when the computer connected to the corporate domain.

Private: This applies to when the computer connected to the private network.

Public: This applies to when the computer connected to the public network.

profile-allow-ping-in-windows

8. In the Name section, you need to specify Name for your Custom Rule → Finish.

name-your-custom-rule-allow-ping

OR

You can add the Port in the firewall using the following command in CMD (Command Prompt).

netsh advfirewall firewall add rule name="TCP Port 1234" dir=in action=allow protocol=TCP localport=1234

9. Finally, reboot the windows server to implement the changes.

restart-windows-server-start

Using the exact steps, you need to add the application ports in the Windows Firewall with Advanced Security Outbound Rules as well.

Updated on January 20, 2022

Was this article helpful?

Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!
CONTACT SUPPORT