Introduction

Windows Firewall helps protect the server by controlling inbound and outbound network traffic. You can create firewall rules to allow specific ports required for applications or services.

Prerequisites

Before proceeding, ensure:

  • Administrative access to the Windows server
  • Port number and protocol details available
  • Windows Firewall service enabled

Implementation

Step 1: Open Control Panel

  • Click Start
  • Open Control Panel

Step 2: Open Windows Firewall

Type:

Firewall

in the search box and select:

Windows Firewall

Step 3: Open Advanced Settings

In the left panel, click:

Advanced Settings

If prompted, provide administrator credentials.

Step 4: Create a New Inbound Rule

In the left panel:

  • Right-click:
Inbound Rules
  • Click:
New Rule

Configure the Rule

Rule Type

Select:

Port

Protocol and Ports

  • Choose:
    • TCP or UDP
  • Specify the required local port number

Action

Choose the required action:

Allow the connection

or based on your requirement.

Profile

Select the applicable profiles:

  • Domain
  • Private
  • Public

Name

Provide:

  • Rule Name
  • Optional description

Finish

Click:

Finish

The port will now be allowed through Windows Firewall.

Conclusion

By creating inbound firewall rules in Windows Firewall, administrators can securely allow required application and service ports while maintaining server protection.

Leave a Reply