How to Open Ports in Windows 10/11 Firewall Easily and Safely

How to Open Ports in Windows 10/11  Firewall Easily and Safely

Knowing how to open ports in your Windows firewall is sometimes necessary for applications, games, or services to function correctly. This guide offers a detailed walkthrough for both Windows 10 and Windows 11 to open a port safely. It includes different scenarios, important security tips, and troubleshooting advice.

Warning: Opening ports can create security vulnerabilities if not done carefully. Only open ports are needed, and you must always follow security best practices.

Opening the port through the Windows Defender Firewall is easy. Here’s how to open ports in Windows:

  1. Type “Windows Defender Firewall” into the Windows search bar and open the application.
  2. Click on “Advanced settings” on the left-hand menu. This will open the “Windows Firewall with Advanced Security” console
Type "Windows Defender Firewall" into the Windows search bar and open the application. This application is the default application for controlling and opening ports in Windows 10 and 11.

Click on "Advanced settings" on the left-hand menu. This will open the "Windows Firewall with Advanced Security" console
  1. Decide whether you need to open the port for incoming (Inbound) or outgoing (Outbound) connections. For applications receiving connections, choose Inbound.
Decide whether you need to open the port for incoming (Inbound) or outgoing (Outbound) connections. For applications receiving connections, choose Inbound.
  1. In the right-hand pane, click “New Rule…”
  2. Select “Port” and click “Next.”
In the right-hand pane, click "New Rule..."

Select "Port" and click "Next."
  1. Choose either TCP or UDP, depending on the application’s requirements. If you’re unsure, check the application’s documentation. Enter the specific port number. Click “Next.”
  1. Select “Allow the connection.” Click “Next.”
Choose either TCP or UDP, depending on the application's requirements. If you're unsure, check the application's documentation. Enter the specific port number. Click "Next." Select "Allow the connection." Click "Next."
  1. Choose the profiles (Domain, Private, Public) where you want the rule to apply. For home use, Private is usually sufficient. Click “Next.”
  1. Give the rule a descriptive name (e.g., “FTP Port”). This helps you manage your rules later. Click “Finish.”
Choose the profiles (Domain, Private, Public) where you want the rule to apply. For home use, Private is usually sufficient. Click "Next."

Give the rule a descriptive name (e.g., "FTP Port"). This helps you manage your rules later. Click "Finish."

By following this tutorial, you understand how to Open ports in Windows 10 and 11. Please make sure to carefully double-check that you’ve followed each step. I have included some solutions for your common doubts and issues you face while you open a port in Windows along with some security practices below.

FAQs

I opened the firewall ports, but they’re still blocked. How can I fix this?

Verify the port number, protocol (TCP/UDP), and direction (Inbound/Outbound) of the rule you set up. For testing, temporarily disable your firewall to check if that fixes the issue. If it does, then the firewall rule is likely the problem. Carefully review the rule. Also, ensure that the application is set to use the correct port by checking its documentation. Lastly, look at the Windows Firewall logs for any blocked connections related to the application.

How do I check the Windows Firewall logs for Port Blocking?

Search for “Event Viewer” in the Windows search bar and go to the path: Event Viewer (Local) > Windows Logs > Security. Right-click on “Security” and click “Filter Current Log…” In the “Event sources” dropdown, select “Microsoft-Windows-Security-Auditing“. Here you can view the logs related to Port Blocking.

What are the different firewall profiles (Public, Private, Domain) and which one should I use?

Windows Firewall profiles control how open your ports are based on network trust.
Public: Use this for public Wi-Fi, like in cafes and hotels. It’s important to block as much as possible for security. Only open ports if necessary, and be aware that this carries a higher risk.
Private: This is for trusted home or work networks. It offers moderate security and allows some sharing. While you can open ports, remain cautious; it’s safer than public networks, but still requires vigilance.
Domain: This is meant for company networks managed by the IT department. Your organization determines the security level. Be sure to follow your company’s policies regarding usage.

(Always use the Public profile on untrusted networks. Opening ports on Public networks significantly increases your risk. Only open ports if you’re certain it’s required and understand the potential consequences.)

How do I know which port number to open?

The application or game’s documentation, website, or support forums should specify the port numbers it requires. Some of the commonly used port numbers can be found from this knowledge base for your reference: Commonly used port numbers.
Sometimes, online searches for “[application name] port number” can also provide this information.

How can I check which ports are currently open on my computer?

You can use the netstat command in the Command Prompt to view active network connections and listening ports.  Open Command Prompt as administrator and type netstat -ano to see the port numbers and the associated processes.

I have a router. Do I need to open ports on my router as well?

Sometimes, yes. If your computer is behind a router, you might need to forward the same ports on your router to your computer’s local IP address. Consult your router’s documentation for instructions on how to do this. Sometimes, online searches for “[router model name] port forwarding” can also provide this information.

If you’re looking to get those ports opened up in Linux, you’re in luck! We’ve got a fantastic blog post that dives into all the details you need. Check it out: https://www.veeble.com/kb/how-to-open-a-specific-port-on-linux/

Scroll to Top