How to open firewall port on Windows 10 - Pureinfotech (2024)

  • To open a Windows firewall port, open the “Windows Defender Firewall with Advanced Security” console.
  • Then click on “Inbound Rules” or “Outbound Rules,” click on “New Rule,” and select the “Port” option.
  • Continue selecting the protocol, and the port number to open on Windows 10, allow the connection, choose the network profile to apply the rules, and save the changes.

On Windows 10, the built-in firewall (also known as the “Microsoft Defender Firewall” or “Windows Firewall”) is a powerful feature that protects your computer and data from threats from outside trying to get in and from those inside trying to get out.

A firewall works as a gatekeeper and blocks all unnecessary network ports. Every time an app or service tries to communicate outside your device, it checks if there’s a specific rule in the database to allow or deny network access. You’ll see a prompt to identify and grant or deny permission if it can’t find a rule.

Sometimes well-known applications (for example, SQL Server and QuickBooks) will not work as expected because they’re getting blocked by the Microsoft Defender Firewall. When this happens, you’ll need to manually create a rule to allow them to access the network.

This guide will teach you the steps to open a port to allow an app to communicate outside the network using the built-in firewall on Windows 10.

  • Open firewall port on Windows 10
  • Close firewall port on Windows 10

Important: Before proceeding, check the app support documentation to know the ports and protocol type you need to open. Also, you can quickly confirm if you need to open a port by temporarily disabling the firewall, and if the app works with the firewall disabled, it indicates you need to create a new rule.

Open firewall port on Windows 10

To open one or more ports in the Windows firewall, use these steps:

  1. Open Windows Security.

  2. Click on Firewall & network protection.

  3. Click the Advanced settings option.

    How to open firewall port on Windows 10 - Pureinfotech (1)

  4. Select Inbound Rules from the left navigation pane.

  5. Under the “Actions” section, click the New Rule option in the right pane.

    How to open firewall port on Windows 10 - Pureinfotech (2)

  6. Select the Port option.

    How to open firewall port on Windows 10 - Pureinfotech (3)

  7. Click the Next button.

  8. Select the appropriate protocol (TCP or UDP) depending on the application. (Usually, the option is TCP.)

  9. Type the port number in the “Specific local ports” setting.

    How to open firewall port on Windows 10 - Pureinfotech (4)

    Quick note: If the app requires multiple ports open, you can type as many as you need as long as you separate each one with a comma (4500,4600,5000). If you need to specify a port range, you can use a hyphen (-). For example, 3000-3100.

  10. Click the Next button.

  11. Select the Allow the connection option. (Using the same step, note that you can block the connection.)

    How to open firewall port on Windows 10 - Pureinfotech (5)

  12. Click the Next button.

  13. Select the network type to apply the rule. (Usually, you want to leave this option with the default selections.)

    How to open firewall port on Windows 10 - Pureinfotech (6)

  14. Click the Next button.

  15. Type a descriptive name for the rule—for example, My Inbound Rule for QuickBooks.

    How to open firewall port on Windows 10 - Pureinfotech (7)

  16. Click the Finish button.

After you complete the steps, inbound connections will be allowed for the app through the port you open in the firewall.

Open outgoing port in Microsoft Defender Firewall

If the app needs a specific outbound port, you can use the same instructions, but instead of selecting Inbound Rules on step 4, you would choose the Outbound Rules options.

To open an outbound firewall port on Windows 10, use these steps:

  1. Open Windows Security.

  2. Click on Firewall & network protection.

  3. Click the Advanced settings option.

    How to open firewall port on Windows 10 - Pureinfotech (8)

  4. Click on Outbound Rules in the left navigation pane.

    How to open firewall port on Windows 10 - Pureinfotech (9)

  5. Under the “Actions” section, click the New Rule option in the right pane.

  6. Select the Port option.

    How to open firewall port on Windows 10 - Pureinfotech (10)

  7. Click the Next button.

  8. Select the appropriate protocol (TCP or UDP) depending on the application.

    How to open firewall port on Windows 10 - Pureinfotech (11)

  9. Type the port number in the “Specific local ports” setting.

  10. Click the Next button.

  11. Select the “Allow the connection” option.

    How to open firewall port on Windows 10 - Pureinfotech (12)

  12. Click the Next button.

  13. Select the network type to apply the new rule.

  14. Click the Next button.

  15. Type a descriptive name for the rule.

  16. Click the Finish button.

Once you complete the steps, outbound connections will be allowed for your application through the port you open in the Windows firewall.

Close firewall port on Windows 10

To close the port in the Microsoft Defender Firewall, use these steps:

  1. Open Windows Security.

  2. Click on Firewall & network protection.

  3. Click the Advanced settings option.

    How to open firewall port on Windows 10 - Pureinfotech (13)

  4. Click on Inbound Rules or Outbound Rules from the left navigation pane, depending on where you open the firewall port.

  5. Select the rule you want.

  6. Under the “Actions” section, click the Disable Rule to close the port while keeping the rule. Or click the Delete Rule option to close the port and remove the rule from the firewall.

    How to open firewall port on Windows 10 - Pureinfotech (14)

After you complete the steps, the app or service will no longer have access to the network or internet because the Windows firewall will block it.

How to open firewall port on Windows 10 - Pureinfotech (2024)

FAQs

How to open firewall ports in Windows 10? ›

Open ports in Windows Firewall
  1. From the Start menu, select Control Panel, select System and Security, and then choose Windows Firewall. ...
  2. Select Advanced Settings.
  3. Select Inbound Rules.
  4. Select New Rule in the Actions window.
  5. Choose the Port rule type.
  6. Select Next.
  7. On the Protocol and Ports page, choose TCP.
Feb 2, 2024

How do I open a firewall for a specific port? ›

How to open a port on the firewall
  1. Click on Start then on Control Panel.
  2. Click on Windows Firewall and then click on Advanced Settings.
  3. Right click on Inbound Rules then on New Rule:
  4. Select Port and click on Next:
  5. Enter a specific local port (e.g. 8080) and click on Next:
  6. Click on Next:
  7. Name the rule and click on Finish:
Jun 16, 2023

How to open port 80 and 443 on Windows 10? ›

Windows
  1. Open the file: [app-path]\server\server.properties.
  2. Enable port 80 (and 443) by changing the appropriate settings from N to a Y . They should look like: server.enable-http-on-port-80=Y. ...
  3. Change the server port in all providers installed on your network. ...
  4. Change the server port in the User Client config file:

How do I open port 1433 on Windows 10 firewall? ›

Solution
  1. Connect to your SQL server.
  2. Open the Windows firewall.
  3. Click on Inbound Rules.
  4. Select New Rule.
  5. Select the Port type of the rule.
  6. Specify the ports 1433 and 1434 to which this rule applies inside the Specific local ports area. ...
  7. In this step, leave the default selection: Allow the connection.
Nov 17, 2022

How do I know if my firewall port is open? ›

Easy Ways to Identify Open Ports
  1. On Windows devices, enable Telnet. Open a command prompt and type “ipconfig.” Use the IP address and port number to locate an open port.
  2. For Mac devices, open a Terminal window. Type “netsat -nr | grep default” into the program. Then, type “nc -vs” + your IP + port number to locate.

How to check if port is open in Windows 10? ›

First, open the Command Prompt by typing “cmd” into the Windows search bar and pressing enter. Then, type “netstat -a” into the Command Prompt and press enter. This will display a list of all the open ports, along with the process ID that is using the port and the name of the program.

How do I allow 80 ports in Windows Firewall? ›

To start, open Windows Security and navigate to Firewall & network protection. Then, go to Advanced settings and select Inbound Rules. From there, click on New rule and choose the Port option. Next, specify TCP and enter '80' in the Specific local ports field before clicking Next.

How do I unblock a Port in Windows 10? ›

Right click Inbound Rules and select New Rule. Add the port you need to open and click Next. Add the protocol (TCP or UDP) and the port number into the next window and click Next. Select Allow the connection in the next window and hit Next.

Why can't I open Port 443? ›

Check your firewall: Make sure that port 443 is allowed in your firewall. You can usually find these settings in the security or firewall section of your operating system's control panel. 3. Check your proxy server: If you're using a proxy server, make sure that it is configured to allow traffic through port 443.

How to check if 1433 port is open or not? ›

Click the Start button on the local machine and type “CMD” into the search programs and files field. Enter “Telnet IP-address 1433” in the Command Prompt. If port 1433 is not open, it will immediately return an error. We will be able to connect to the MS-SQL server if port 1433 is open.

How do I open port 445 in Windows 10 firewall? ›

Create an inbound or outbound rule in windows firewall depending on your requirement.
  1. Go to run window, windows button + r.
  2. Type in firewall.cpl.
  3. Go to advanced settings.
  4. Select Inbound Rule/Outbound rule.
  5. On the right side select new Rule.
  6. Select Port & Next.
  7. Select TCP and check specific local ports & enter the port number.
Jul 6, 2022

How to open port with firewall CMD? ›

Opening a port
  1. Get a list of allowed ports in the current zone: $ firewall-cmd --list-ports.
  2. Add a port to the allowed ports to open it for incoming traffic: $ sudo firewall-cmd --add-port=port-number/port-type.
  3. Make the new settings persistent: $ sudo firewall-cmd --runtime-to-permanent.

How to check if firewall is blocking a port in Windows 10? ›

Check Blocked Ports in Firewall via Command Prompt
  1. Use Windows Search to search for cmd.
  2. Right-click the first result and then select Run as administrator.
  3. Type netsh firewall show state and press Enter.
  4. Then, you can see all the blocked and active ports in your Firewall.
Jan 31, 2024

How do I allow firewall access in Windows 10? ›

Click the Start button, then type Windows Firewall in the Search box. Click Windows Firewall, and then click Allow a program or feature through Windows Firewall. Click the Change settings button. If a User Account Control window appears, click Yes, or enter your user name and password, then click OK.

What ports are needed for Windows 10 activation firewall? ›

For Windows Product Activation to succeed, configure firewalls or other devices that are between the client and the Internet to allow traffic to pass over ports 80, and 443.

How do I open a port range in Windows Firewall? ›

Click Security and Users > Firewall. Select the Allowed Services tab and click Advanced. Enter the wanted port range in the from-port-start:to-port-end format and specify the protocol (TCP or UDP).

Top Articles
Latest Posts
Article information

Author: Rob Wisoky

Last Updated:

Views: 5530

Rating: 4.8 / 5 (68 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Rob Wisoky

Birthday: 1994-09-30

Address: 5789 Michel Vista, West Domenic, OR 80464-9452

Phone: +97313824072371

Job: Education Orchestrator

Hobby: Lockpicking, Crocheting, Baton twirling, Video gaming, Jogging, Whittling, Model building

Introduction: My name is Rob Wisoky, I am a smiling, helpful, encouraging, zealous, energetic, faithful, fantastic person who loves writing and wants to share my knowledge and understanding with you.