• Skip to main content
  • Skip to primary sidebar

Master Your Tech

Mobile phones, software, consumer electronic how-to guides

  • iPhone
  • Excel
  • Powerpoint
  • Word
  • Google Drive
  • Tech
  • Guides
You are here: Home / Guides / How to Close Ports on Windows 10: A Step-by-Step Guide

How to Close Ports on Windows 10: A Step-by-Step Guide

posted on May 29, 2025

Closing ports on Windows 10 is like locking the doors to your digital house to keep unwanted guests out. You can do this in a few simple steps by using the built-in Windows Firewall. This process involves accessing the Control Panel, opening the Advanced Settings for security, and creating a new rule to block specific ports. It’s a straightforward task that takes just a few minutes, but it offers a significant boost to your computer’s security.

How to Close Ports on Windows 10

In the following steps, you’ll learn how to close ports on Windows 10, effectively preventing unauthorized access through those channels.

Step 1: Open Windows Firewall

Begin by going to the Control Panel and searching for "Windows Defender Firewall."

The Control Panel is your gateway to many system settings. By typing "Windows Defender Firewall" in the search bar, you’ll be directed to the settings page where you can start the port-closing process.

Step 2: Access Advanced Settings

Once inside, click on "Advanced Settings" on the left-hand side.

Advanced Settings will take you to a more detailed view, where you can manage inbound and outbound rules. This is where you have the power to close ports that might be vulnerable.

Step 3: Create a New Rule

Click "Inbound Rules" and then select "New Rule" on the right.

Inbound Rules control what comes into your PC. By clicking "New Rule," you’ll be starting the process of creating a custom rule that targets specific ports you want to close.

Step 4: Select Port Rule Type

Choose "Port" as the type of rule you want to create, then click "Next."

By selecting "Port," you’re specifying that the rule will apply to specific numerical ports on your system, rather than applications or protocols. This precision is key for security.

Step 5: Specify Port Numbers

Enter the port numbers you wish to block and click "Next."

Here, you need to know which ports you want to close. Common ports to consider are those not used by your essential applications, like those above 1024, which are often less secure.

Step 6: Block the Connection

Select "Block the connection" and proceed.

By choosing to block the connection, you’re ensuring that data can’t flow in or out of the specified ports, effectively sealing them off from potential threats.

Step 7: Apply Rule to Networks

Decide which networks this rule will apply to (Domain, Private, or Public) and click "Next."

This step allows you to choose the scope of your rule. You can apply it to only certain types of networks, making your setup flexible to meet your needs.

Step 8: Name the Rule

Give your rule a descriptive name and click "Finish."

Naming the rule helps you remember its purpose if you ever need to revisit or modify it. It’s the final touch before activating your new security measure.

After completing these steps, your selected ports will be effectively closed. This means that any unauthorized attempts to access your computer via these ports will be blocked, enhancing your system’s security.

Tips for Closing Ports on Windows 10

  • Always research which ports are safe to close before proceeding.
  • Regularly update your firewall settings to keep up with potential threats.
  • Consider using additional security software for enhanced protection.
  • Keep a record of closed ports and rules for future reference.
  • Test your network after closing ports to ensure essential services still function.

Frequently Asked Questions

Can closing ports cause problems with my applications?

Yes, if you close a port that an application relies on, it could stop working properly.

Is it necessary to close ports if I have antivirus software?

Yes, closing unnecessary ports provides an additional layer of security.

How can I determine which ports are open?

You can use the "netstat" command in Command Prompt to view open ports.

What are some common ports I should consider closing?

Ports 135, 139, and 445 are common targets for attacks and can be closed safely if unused.

Can I reopen a port if needed?

Yes, you can modify or delete the rule in Windows Firewall to reopen a port.

Summary

  1. Open Windows Firewall.
  2. Access Advanced Settings.
  3. Create a New Rule.
  4. Select Port Rule Type.
  5. Specify Port Numbers.
  6. Block the Connection.
  7. Apply Rule to Networks.
  8. Name the Rule.

Conclusion

In today’s digital world, knowing how to close ports on Windows 10 is akin to securing your home before going on a vacation. It’s a critical part of keeping your computer safe from unwanted intrusions. By following these steps, you take control of your network’s entry and exit points, ensuring that harmful traffic is kept at bay.

Closing ports should be part of a broader strategy to maintain a secure computing environment. While antivirus software is essential, it’s not a catch-all solution. Closing ports reduces your exposure to risks by limiting the paths that cyber threats can take to infiltrate your system.

For further exploration, consider diving into topics like network security basics or how firewalls function to guard against cyber threats. And if you’re ready for a deeper dive, think about learning more advanced techniques, such as configuring your router’s firewall to add another layer of security.

Remember, proactive steps today can save you a headache tomorrow. So, go ahead, lock those digital doors and give yourself peace of mind in knowing that you’ve added an essential layer of protection to your Windows 10 system.

Matthew Burleigh
Matthew Burleigh

Matthew Burleigh has been a freelance writer since the early 2000s. You can find his writing all over the Web, where his content has collectively been read millions of times.

Matthew received his Master’s degree in Computer Science, then spent over a decade as an IT consultant for small businesses before focusing on writing and website creation.

The topics he covers for MasterYourTech.com include iPhones, Microsoft Office, and Google Apps.

You can read his full bio here.

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook

Related posts:

  • How to Force Close an App on Windows: A Step-by-Step Guide
  • How to Force Close on Windows: A Step-by-Step Guide to Efficiency
  • How to Close All Windows on Mac: A Step-by-Step Guide
  • How to Close Windows on Mac: A Step-by-Step Guide for Users
  • How to Close Applications in Windows 8: A Step-by-Step Guide
  • How to Close Windows on iPad: A Simple Guide for All Users
  • How to Force Quit on Windows: Easy Steps to Close Unresponsive Apps
  • How to Force Quit a Program on Windows: Easy Steps to Close Apps
  • How to Force Quit on Windows 11: Simple Steps to Close Apps
  • How to Close Open Tabs in the iPhone 14 Safari Browser: A Step-by-Step Guide
  • How to Close Apps on the iPhone 14: A Step-by-Step Guide
  • How to Close Tabs on iPhone 14: A Step-by-Step Guide

Filed Under: Guides

Search

Primary Sidebar

Latest Posts

  • How to Change Taskbar Size in Windows 11: A Simple Guide
  • How to Skip Microsoft Sign-In on Windows 11: A Step-by-Step Guide
  • How to Scan for Malware on Windows 11: A Comprehensive Guide
  • How to Update Windows 11: A Step-by-Step Guide for Users
  • How to Refresh Screen in Windows 11: A Step-by-Step Guide
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Copyright © 2026 MasterYourTech.com