How to Open Firewall Ports on a Windows PC

Authored by: Support.com Tech Pro Team

1. Introduction

It can be frustrating when a piece of software has problems getting online, and you're requested to check your networking configuration, or to 'open ports'.

This guide hopes to help demystify network security on your Windows computer, and help you check what settings are in place, to be certain nothing is causing problems.

Personal Firewall.

2. Port-Based vs. App-Based

Today's modern computers no longer rely on you, the user, to know the inner workings of computer networking to setup secure communications. Instead, they work on a 'model of trust' related to the application itself.

IPs and Ports

The way computers talk to each other on the Internet and home networks is through Internet Protocol (IP) addresses and Ports.

An easy way to think of this is a block of office buildings.

  • Each building has an address; just like each home on the Internet has a public IP address.
  • Each business inside the office building has a suite number; just like each computer has a private IP address.
  • Each office or desk in the suite has a number; just like each program has ports it uses.
Example of office building metaphor.

For example, if you wanted to write a letter to someone in Building 101, Suite 300, Office 2, you'd probably put the following on the envelope:

Building 101
Suite 302

The Postal Service would take care of getting the mail to Building 101. From there, the office mail would take care of getting the mail up to the third floor, and into office two.

Computers work in the same way. Each bit of data, or letter, is called a packet. Each packet has an address. For the exact same example, using the computer numbers on the right instead:

34.56.78.101::192.168.0.3:443

Your Internet Service Provider (ISP), would take care of getting that packet to the home network's public IP (34.56.78.101). From there, the router in your home would take care of getting that packet to computer 192.168.0.3. Then, the computer itself would receive it, and any program listening on port 443 would hear the message.

Your computer does this dozens of times for every web page you visit, for example. Once for each image, the page itself, etc. It does it thousands, if not millions, of times for the various bits of the video you watch, or audio you listen to, or game you play.

The Application Firewall Model

Recently, computers have become much, much faster, and the way they work has changed such that they can do multiple tasks at once. This has allowed a new way of looking at network security to become a reality.

Rather than the computer just assuming everything that's running is allowed unrestricted access to network resources, or just allowing everything unrestricted communication, there can be some checks put in place that don't impact how the computer works, or slow things down.

To use our office metaphor: Another person was hired to check the mail on each floor, and weed out the junk mail and malicious packages; a security guard who watches the communication going on.

That security guard keeps track of who's in the office, and if those people are to be trusted, and how much trust to give them. The CEO's mail may go in and out without so much as a second glance, but the temp in accounting would probably fall under a lot more scrutiny and not be allowed to use the company resources quite so freely. The same thing happens under the Application Firewall Model.

On your computer, the firewall no longer assumes you know everything about every program you use and how it communicates. Instead, you can choose to trust the application itself, and what it can and cannot do in general.

For example, a chat application. You want to be able to chat with your friends and family using it. The first time it tries, the firewall steps in and blocks it, but asks you if that's okay, and you allow it. You didn't need to know that the chat application uses ports 2700 and 80, you didn't need to know what endpoints it uses. You didn't need to know to allow those ports only when the chat application was open. The firewall takes care of all of that for you.

What This Means

The big benefit to this is it's now much easier for you to keep safe and secure online, because you just need to tell the firewall, once, what programs are and are not allowed access. You don't have to 'know' how that application works, or what program to visit to allow access on certain ports.

Everything starts out forbidden. When a program opens and makes a request, the firewall checks if the application is on its list.

  • If the application isn't on the list at all, you are asked if it's okay to access things.
  • If the application is already on the list as allowed, it's allowed access without bothering you, based on what you chose before or the defaults if Apple trusts the application.
  • If the application is already on the list but denied, it's denied access without bothering you.

What this means is you no longer have to worry about opening and closing ports to keep safe online. Just watch for the prompts from your firewall, read them, and allow or block access for the application as you need.

3. Enable or Disable Firewall

By default, the Windows Firewall is enabled. This will guide you to the settings, and help make sure it's working properly for you.

  1. Select the Start menu.
Windows 10 Start Menu.
  1. By default, your Start Menu is in the bottom-left corner of your screen.
  2. Select Settings.
Start menu with settings highlighted.
  1. Select Update & Security.
Windows Settings with Update and Security highlighted.
  1. Select Windows Security on the left, then Firewall & network protection on the right.
Update and Security with Windows Security and Firewall and Network Protection highlighted.
  1. One of the three options, Domain, Private, or Public network, will show as active. Make sure the Active network shows Firewall is on.
Firewall and network protection with active network highlighted.

4. How to Use Firewall

With Windows Defender Firewall on, you will sometimes see popup notifications from applications asking for access to your system.

Windows 10 firewall pop up

You should only allow access if you recognize the program. Typically, you'll only see the prompts the first time after installing software or a game.

Click Allow to give the program access.

Windows 10 firewall popup with Allow selected