How to Open a Specific Port in Your Windows Firewall (2024)

The Windows Firewall is a security measure that blocks unauthorized access to your PC. By default, the firewall is enabled, but you can open up specific ports depending on the service you’d like to use.

How to Open a Specific Port in Your Windows Firewall (1)

If you are running an FTP server on your computer, for example, opening ports 20 and 21 will allow other computers on the local network to connect with yours and share data.

This article will show you how to open a specific port in your Windows firewall.

How to Open Ports in the Windows Firewall

The purpose of a firewall is to filter traffic and protect your network from certain types of attacks. Just as a doorstop can be used to prevent people from getting into your home, a firewall will stop unwanted users and programs from accessing your system over the internet.

This feature helps you maintain privacy while browsing, for example, if you accidentally navigate to a site that contains malware. A firewall also ensures that anyone targeting you with cybercriminal activities can’t get through and access your computer.

Your Windows firewall has a series of openings called ports to help your computer communicate with other safe computers and servers across the internet.

Every port has a positive 16-bit unsigned integer ranging from 0 to 65535.

Firewall ports primarily serve two purposes. First, ports improve the security of your PC by restricting access to specific devices on your network and beyond. Second, they secure traffic by dropping packets if the destination port for a data packet does not match the destination port of an expected response packet. This process is known as port filtering.

By default, every PC has many open ports to facilitate smooth communication between your computer and the outside world. But there’s also a large number of ports that aren’t open, especially those scarcely used.

The problem is that if a port that facilitates a particular type of web traffic is closed, you won’t be able to use certain services.

For example, if you’re an Xbox enthusiast, the following ports need to be open before you can link up with other players and allow your Xbox console to communicate with the Xbox network:

  • Port 500 (UDP)
  • Port 88 (UDP)
  • Port 4500 (UDP)
  • Port 53 (UDP and TCP)
  • Port 80 (TCP)
  • Port 3544 (UDP)
  • Port 3074 (UDP and TCP)

The good news is that the Windows firewall allows you to open just about any port and run the associated service.

Let’s go over how to open both inbound and outbound ports on your PC.

How to Open Inbound Ports in the Windows Firewall?

Inbound firewall ports refer to those ports that allow external computers on the internet (remote computers) to access your PC or other devices in the local area network. That includes printers, routers, and other networking equipment.

Here’s how to open a port for incoming traffic:

  1. Open the Control Panel utility.
    How to Open a Specific Port in Your Windows Firewall (2)
  2. Navigate to “System and Security” and then select “Windows Defender Firewall.”
    How to Open a Specific Port in Your Windows Firewall (3)
  3. Click on “Advanced Settings.”
    How to Open a Specific Port in Your Windows Firewall (4)
  4. Right-click on “Inbound Rules” and select“New Rule” from the popup menu.
    How to Open a Specific Port in Your Windows Firewall (5)
  5. Select the “Port” option and click “Next.”
    How to Open a Specific Port in Your Windows Firewall (6)
  6. Add the protocol (TCP or UDP). This information is usually part of a port’s official name.
    How to Open a Specific Port in Your Windows Firewall (7)
  7. Enter the port number in the box provided and hit “Next.”
    How to Open a Specific Port in Your Windows Firewall (8)
  8. Click on “Allow the connection” and then “Next.”
    How to Open a Specific Port in Your Windows Firewall (9)
  9. Select the network type.
    How to Open a Specific Port in Your Windows Firewall (10)
    • If your PC is connected to a corporate domain, select “Domain.”
    • If your PC is connected to a private network, select “Private.”
    • For a public network, select “Private.”
  10. Click “Next.”
    How to Open a Specific Port in Your Windows Firewall (11)
  11. Name the new rule and then click “Finish.”
    How to Open a Specific Port in Your Windows Firewall (12)

How to Open Outbound Ports in the Windows Firewall

Outbound ports are used to block all outgoing traffic from a specified port. A network operator can block an outbound port to prevent users in the local network from visiting certain websites or even running specific programs that require an internet connection.

If you’d like to open an outbound port, here are the steps:

  1. Open the Control Panel.
    How to Open a Specific Port in Your Windows Firewall (13)
  2. Go to “System and Security” and then click on “Windows Firewall.”
    How to Open a Specific Port in Your Windows Firewall (14)
  3. Select “Advanced Settings” from the left pane.
    How to Open a Specific Port in Your Windows Firewall (15)
  4. Right-click on “Outbound Rules.”
    How to Open a Specific Port in Your Windows Firewall (16)
  5. Hit“New Rule” in the popup menu and click on the “Port” toggle button.
    How to Open a Specific Port in Your Windows Firewall (17)
  6. Click “Next.”
    How to Open a Specific Port in Your Windows Firewall (18)
  7. Specify whether the port uses TCP protocol or UDP protocol.
    How to Open a Specific Port in Your Windows Firewall (19)
  8. Type the port number in the next window and click “Next.”
    How to Open a Specific Port in Your Windows Firewall (20)
  9. Toggle the button next to “Allow the connection” and then hit “Next.”
    How to Open a Specific Port in Your Windows Firewall (21)
  10. Select the network type.
    How to Open a Specific Port in Your Windows Firewall (22)
  11. Click “Next” again.
    How to Open a Specific Port in Your Windows Firewall (23)
  12. Type a name for the new rule and then hit the “Finish” button at the bottom of the window.
    How to Open a Specific Port in Your Windows Firewall (24)

Additional FAQs

How Do I Check Which Ports Are Open?

1. Open the Start menu.

2. Type “Command Prompt” and click on “Run as administrator.”

3. Type “netstat-ab” and then hit Enter. In a few moments, you should see a list of all open ports.

What Are the Dangers of Opening a Port?

Opening firewall ports can allow outsiders to access services that would otherwise be protected from external actors. For example, opening a TCP port to make FTP available on your computer can enable hackers to execute any arbitrary commands on your system.

In addition, opening an outbound port can make it easier for malware that has infiltrated one of the machines in your network to spread to all of the other computers in the network.

Connect With Freedom

The firewall in Windows puts a safety net in place to ensure nobody can access your information without authorization to pry into your files, track your IP address or location, or find out what sites you visit.

However, sometimes you’ll need to open a port or two to access certain services, such as playing video games with other players around the world. The good thing is that Microsoft has ensured you can open any port you want in just a few steps.

Before opening any port, it’s crucial to analyze all the risks and evaluate how such a move will affect the other devices in your local network.

To be on the safe side, you shouldn’t open up any ports on your PC’s firewall if you haven’t installed additional security tools such as Windows Defender and a strong antivirus program. Such utilities can reinforce your system’s defense capabilities and rebuff any attackers who might attempt to infiltrate your system.

Which ports have you tried to open on your PC? How did it go?

Let us know in the comments section below.

How to Open a Specific Port in Your Windows Firewall (2024)

FAQs

How do I open a specific port? ›

Answer: From the Control Panel, navigate to System and Security, and click on Windows Firewall. Go to the Advanced settings and right-click on Inbound Rules on the left pane. Select New Rule, add the port and click Next. Pick the Protocol and the Port Number, click Next again.

How do I open port 80 and 443? ›

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 . ...
  3. Change the server port in all providers installed on your network. ...
  4. Change the server port in the User Client config file: ...
  5. Restart the Application Server.

How do I unblock a port in my firewall? ›

How to unblock ports
  1. Click Start.
  2. Type Control Panel and press Enter.
  3. Click System and Security.
  4. Click Windows Defender Firewall.
  5. Select Advanced settings, and then select Inbound Rules in the left pane.
  6. Right-click Inbound Rules, and then select New Rule.
  7. Select Port, and then click Next.

How do I open port 80 and 443 in Windows 10? ›

Enable a port range in advance
  1. Click Advanced settings in the left column of the Windows Firewall window.
  2. Click Inbound Rules in the left column.
  3. Click New Rules in the right column.
  4. Select Port and click next.
  5. Select TCP and enter 8000, 8001, 8002, 8003, 9000, 80, 443 in the Specific local ports field.
  6. Click Next.
Sep 15, 2021

How can I tell if port 8080 is open? ›

For instance, to check whether port 8080 is open, you would type “lsof -i :8080” in the terminal. This will show you a list of all the processes using port 8080.

Is port 80 and 8080 are same? ›

Port 80 is the default port. It's what gets used when no port is specified. 8080 is Tomcat's default port so as not to interfere with any other web server that may be running. If you are going to run Tomcat as your web server, the port can be changed to 80 so that visitors do not need to specify it.

How do I open port 25565? ›

Check the Enabled option, give the forwarding rule a name, specify the local static IP address you've set previously, and enter the Minecraft server port. In this case, it's 25565. Don't forget to apply the configuration for both TCP and UDP ports. Once done, save the changes.

How do I SCP to a specific port? ›

SCP ports. SCP port runs over TCP port 22 by default, which is also the same default port for SSH. Some system administrators choose to change this port, mainly for security reasons. To choose a different port when using the SCP command, it is necessary to use -P switch followed by the port number selected.

Top Articles
Latest Posts
Article information

Author: Fredrick Kertzmann

Last Updated:

Views: 6394

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.