How to block port in windows server


In this article, we will discuss “how to block port in windows server”. In computing, a firewall is a network security system that monitors and controls the incoming and outgoing network traffic based on predetermined security rules. A firewall typically establishes a barrier between a trusted network and an untrusted network, such as the Internet.

Open Windows Firewall

  • Hit the Windows key
  • Now type “firewall with Advanced Security
  • You will see the settings will appear called “windows firewall with advanced security
  • Now click the app to run it.
  • Screenshot 12

Configure Inbound rule

  • Click on the “Inbound Rule” button on the top left section.
  • Screenshot 2 1
  • Now choose “New Rule” on the top right section of the window.
  • Screenshot 3 1
  • It will open the “New Inbound Rule Wizard” console.

Configure Open Ports

  • In the “Rule Type” options choose the port and click the Next button.
  • Screenshot 4 1
  • Next, in the “Protocol and Ports” options choose TCP or UDP.
  • After this, in the “Specific Local Ports” options type your Desired port and click the Next button.
  • Screenshot 5 1
  • In the Action window select the “Block the Connection” option.
  • block port
  • Next, In the profile window choose your desired Rule option “Domain, Private or Public“.
  • block port
  • Now click the Next Button.
  • Finally, Place a name for the rule, a description if you like and hit Finish.
  • block port
  • The port is now Block.
  • block port