Closing an Open Port

by Barry Dysert
(last updated May 19, 2014)

In the tip titled Scanning Your System for Open Ports you discover how to see what ports are open on your computer. If you want to close an open port, you can do so by using the Windows Firewall. For example, let's say you want to close port 5500 for all inbound connections. Perform the steps outlined below.

  1. Open Windows Firewall by going to Start | Control Panel | Windows Firewall. (See Figure 1.)
  2. Figure 1. Windows Firewall opening screen.

  3. On the left, click the "Advanced Settings" link. (See Figure 2.)
  4. Figure 2. Windows Firewall advanced settings.

  5. On the left, click the "Inbound Rules" link. Windows displays a list of all the firewall's inbound rules.
  6. Right-click the "Inbound Rules" link, and from the resulting Context menu select "New Rule." Windows displays the first step of the New Inbound Rule Wizard. (See Figure 3.)
  7. Figure 3. Step 1 of the New Inbound Rule Wizard.

  8. Since you want to close a particular port, click the Port radio button and click Next. The wizard allows you to specify which port you want to affect. (See Figure 4.)
  9. Figure 4. Step 2 of the New Inbound Rule Wizard.

  10. You want the rule to apply to TCP, so click that radio button and also type "5500" (without quote marks) into the text box. Then click Next to move to the next wizard step. (See Figure 5.)
  11. Figure 5. Step 3 of the New Inbound Rule Wizard.

  12. Click the Block the Connection radio button and click Next to display the next wizard step. (See Figure 6.)
  13. Figure 6. Step 4 of the New Inbound Rule Wizard.

  14. Ensure that all three checkboxes are marked and again click Next to move on. (See Figure 7.)
  15. Figure 7. Step 5 of the New Inbound Rule Wizard.

  16. Type in a name for the rule and optionally type a description, then click Finish.

Port 5500 is now closed and cannot be used by any service.

 This tip (13105) applies to Windows 7.

Author Bio

Barry Dysert

Barry has been a computer professional for over 30 years, working in different positions such as technical team leader, project manager, and software developer.  He is currently a senior software engineer with an emphasis on developing custom applications under Microsoft Windows. ...

MORE FROM BARRY

Creating a Desktop Shortcut for a Favorite Web Page

If you visit a certain Web page frequently, you may wish to create a desktop shortcut to take you there. This tip tells you ...

Discover More

Understanding the Windows Experience Index

Sometimes it's good to know how powerful your system is. You may want to alleviate a hardware bottleneck or decide whether a ...

Discover More

Using N.R.S. Ghost Control

Ghost Control is a nice utility when you need to save your keystrokes and mouse movements while doing repetitive tasks. This ...

Discover More
More WindowsTips

Displaying the Home Button in Microsoft Edge

By default, Microsoft Edge does not display a Home button on its toolbar. If you like having the Home button visible, this ...

Discover More

Understanding IP Addresses

IP addresses are at the heart of computer networking. They are typically handled automatically, but you may find it ...

Discover More

Setting Up Your Wi-Fi Enabled Computer As a Hotspot

If your computer is Wi-Fi enabled, you can easily set it up to be a hotspot. This tip shows you how.

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is seven more than 5?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.