How To Open Firewall Ports In Windows 10 (2024)

This tutorial was written by Tom's Hardware Community member JamieKavanagh. You can find a list of all their tutorials here.

A firewall is an essential aspect of computing and no PC should ever be without one. That’s why Windows has one bundled and active as standard. Windows Firewall occasionally has to be told to let a program communicate with the network, which is where opening ports comes in. If you want to open firewall ports inWindows 10, here’s how you do it.

Firewalls are designed to protect a network from threats. Either threats from the outside trying to get in or threats from the inside trying to get out. It does this by blocking network-enabled ports. Every time a program tries to communicate through this port, the firewall checks its database of rules to see if it is allowed or not. If it doesn’t know, it asks you, which is why you sometimes see prompts asking you if a particular program is permitted to access the internet.

How To Open Firewall Ports In Windows 10 (1)


Open firewall ports in Windows 10
You can manually permit a program to access the internet by opening a firewall port. You will need to know what port it uses and the protocol to make this work.

  1. Navigate to Control Panel, System and Security and Windows Firewall.
  2. Select Advanced settings and highlight Inbound Rules in the left pane.
  3. Right click Inbound Rules and select New Rule.
  4. Add the port you need to open and click Next.
  5. Add the protocol (TCP or UDP) and the port number into the next window and click Next.
  6. Select Allow the connection in the next window and hit Next.
  7. Select the network type as you see fit and click Next.
  8. Name the rule something meaningful and click Finish.

You have now opened a firewall port in Windows 10!

Stay On the Cutting Edge: Get the Tom's Hardware Newsletter

Get Tom's Hardware's best news and in-depth reviews, straight to your inbox.

How To Open Firewall Ports In Windows 10 (2)

Nathaniel Mott

Freelance News & Features Writer

Nathaniel Mott is a freelance news and features writer for Tom's Hardware US, covering breaking news, security, and the silliest aspects of the tech industry.

More about cyber security

Researchers snoop data from air-gapped PC's RAM sticks by monitoring EM radiation from 23 feet awayOlder YubiKeys compromised by unpatchable 2FA bug — side-channel attack is critical, but expensive and difficult to execute

Latest

'Cyberpunk 2077' finally gets FSR3 frame gen for non-RTX GPUs — it's not FSR 3.1, but it works with basically any graphics card
See more latest►

4 CommentsComment from the forums

  • canadianvice

    A protip, particularly for gamers: Remember that you may also have to repeat a similar process with your router, and additionally, be aware that Windows' "enable through firewall" quick setting (the one that you can just check a box for) is trash. Often incoming ports will be blocked by default and have to be opened, even if it says otherwise.

    I hate the interface on the default firewall manager, so taking advantage of the netsh firewall commands I wrote an app that lets you batch create these with rules like "both ways" and then generates a BAT to run for implementation. Also has click and drag, which is ballin'.

    Reply

  • positiveinflux

    Thanks for your contribution as well as a reminder for those hosting gaming servers or newcomers

    Reply

  • Fait

    Great comment except that you forgot the link to your "App".

    Reply

  • scary_name

    Well...there seem to something wrong with my edition of windows 10 (besides it keep changing languages every day). I tried the above mentioned procedure, thrice, but Defender refuses to save any of the exceptions I add to it. Even tried a few alternatives. Every time I exit, and re-open, the new rule is gone. I never should have upgraded from Win7..fml.

    Reply

Most Popular
Nvidia and Oracle team up for Zettascale cluster: Available with up to 131,072 Blackwell GPUs
MSI's X870 boards get GPU power boost for PCIe slots with new power connector — ATX 3.1-ready motherboards have an extra connector to feed power-hungry GPUs and multi-GPU setups
AMD silently launches RX 7800M GPU — mobile Navi 32 with 12GB of VRAM
Intel Z890 motherboards reportedly ship with the Intel Default Profile by default — alternative profiles are allowed but only selectable by the user
Intel partner offers refund for faulty Core i9-14900K CPU due to lack of stock — affected user sells off Intel hardware and switches to AMD
Intel Alder Lake-N CPU powers new Linux tablet PC — Juno Tab 3 features N100 CPU, 12GB RAM, and 512GB SSD for $699
Oracle will use three small nuclear reactors to power new 1-gigawatt AI data center
Apple's A18 delivers solid performance gains, challenges Ryzen 9 9950X in single-core Geekbench
Iodyne launches external SSD with Frore's AirJet cooler for sustained 3GB/s performance
Russia to spend $660 million to strengthen its Internet censorship infrastructure: Report
How To Open Firewall Ports In Windows 10 (2024)

FAQs

How To Open Firewall Ports 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.

How to open firewall ports in Windows 10? ›

How to open and close ports in Windows Firewall
  1. Click Windows Firewall. ...
  2. Click Inbound Rules. ...
  3. Click Port. ...
  4. Click either TCP or UDP. ...
  5. Type a port number (In this case, we will open port 1707) ...
  6. Click Allow the connection. ...
  7. Click any network types you'd like to allow the connection over. ...
  8. Type a name for the rule.
Mar 6, 2023

How do I unblock TCP ports 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.

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 check what ports are open on my firewall? ›

If you would like to test ports on your computer, use the Windows command prompt and the CMD command netstat -ano. Windows will show you all currently existing network connections via open ports or open, listening ports that are currently not establishing a connection.

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

Press the Windows key + R, then type "cmd.exe" and click OK. Enter "telnet + IP address or hostname + port number" (e.g., telnet www.example.com 1723 or telnet 10.17.xxx.xxx 5000) to run the telnet command in Command Prompt and test the TCP port status. If the port is open, only a cursor will show.

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.

How do I unblock the port in my firewall? ›

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 do I see blocked ports in Windows 10? ›

Steps:
  1. Launch Command Prompt.
  2. Run netstat -a -n.
  3. Check the List. If the specific port is listed, the server is listening on that port. If it isn't, the port is not being used, indicating the application is either not running or not using that port.

How do I open all TCP ports? ›

Main steps to open ports:
  1. Locate your router's IP address.
  2. Head over to your router's settings.
  3. Enter your credentials (username and password).
  4. Look around for the Port Forwarding tab.
  5. Open your preferred port—for example, type 8080 to open port 8080.
  6. Save your settings.
Jan 14, 2021

How to open Windows Firewall ports command line? ›

To open a port using netsh, do the following.
  1. Open an elevated command prompt.
  2. Type the following command: netsh advfirewall firewall add rule name="TCP Port 6624" dir=in action=allow protocol=TCP localport=6624 . ...
  3. To delete the rule, execute the command as follows.
Sep 4, 2018

How to check if port 80 is blocked? ›

Perform the following steps to check whether the port is listened on:
  1. Open the Command Prompt window.
  2. Run the following command: netstat -ano | findstr :80. If TCP 0.0. 0.0:80 0.0. 0.0:0 LISTENING 4 is displayed, all traffic from port 80 is listened on. Otherwise, you must modify the listen address.
May 9, 2022

How to open a firewall? ›

Turn Microsoft Defender Firewall on or off
  1. Select Start , then open Settings . ...
  2. Select a network profile: Domain network, Private network, or Public network.
  3. Under Microsoft Defender Firewall, switch the setting to On. ...
  4. To turn it off, switch the setting to Off.

How do I know if my firewall is blocking ports? ›

To see if your firewall is blocking a website, app, or port on Windows, go to Windows Firewall > Advanced Settings and check your Outbound rules.

Will all ports open if firewall is off? ›

Does turning off Windows Firewall open all ports? Yes. But your modem/router where your internet comes in might be blocking them anyways. So turning off your windows firewall might not help.

What command checks for open ports? ›

To find open ports on a computer and to check what application is using specified port, use the netstat command line: Open the command prompt (Start > Run > cmd) and use netstat -ano | find /i "<port_number>". It will show you all processes that use the specified port. Notice the PID (process id) in the right column.

How do I open open ports? ›

How to open ports on a router
  1. Access your router's web interface. Navigate to your router's configuration page by typing the router's IP address into your browser.
  2. Log in to your router. ...
  3. Find the port forwarding section. ...
  4. Add a new port forwarding rule. ...
  5. Save the changes.
Jun 19, 2023

How to enable TCP/IP port in Windows 10? ›

To enable DHCP or change other TCP/IP settings
  1. Select Start, then type settings. Select Settings > Network & internet.
  2. Do one of the following: ...
  3. Next to IP assignment, select Edit.
  4. Under Edit network IP settings or Edit IP settings, select Automatic (DHCP) or Manual. ...
  5. When you're done, select Save.

How do I know if my 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 to check if port 443 is open in Windows CMD? ›

Check if port 443 is open:

On Windows: open the Command Prompt on your Windows machine > type telnet <IP address or domain name> 443 and press Enter. If the command returns “Connected to <IP address or domain name>”, then port 443 is open.

Top Articles
YubiKey as a smart card on iOS
Here's absolutely every new thing in Samsung OneUI 3.0
Chs.mywork
NYT Mini Crossword today: puzzle answers for Tuesday, September 17 | Digital Trends
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
4-Hour Private ATV Riding Experience in Adirondacks 2024 on Cool Destinations
Http://N14.Ultipro.com
Phone Number For Walmart Automotive Department
Chalupp's Pizza Taos Menu
Zitobox 5000 Free Coins 2023
Www Thechristhospital Billpay
Mivf Mdcalc
Ktbs Payroll Login
4Chan Louisville
Obituary | Shawn Alexander | Russell Funeral Home, Inc.
Yesteryear Autos Slang
Rosemary Beach, Panama City Beach, FL Real Estate & Homes for Sale | realtor.com®
Premier Reward Token Rs3
Salem Oregon Costco Gas Prices
Shopmonsterus Reviews
Shiftselect Carolinas
Maxpreps Field Hockey
A Person That Creates Movie Basis Figgerits
Papa Johns Mear Me
Goodwill Of Central Iowa Outlet Des Moines Photos
Wku Lpn To Rn
Craigslist Fort Smith Ar Personals
The Collective - Upscale Downtown Milwaukee Hair Salon
Cfv Mychart
LG UN90 65" 4K Smart UHD TV - 65UN9000AUJ | LG CA
Downloahub
Housing Assistance Rental Assistance Program RAP
Forager How-to Get Archaeology Items - Dino Egg, Anchor, Fossil, Frozen Relic, Frozen Squid, Kapala, Lava Eel, and More!
Save on Games, Flamingo, Toys Games & Novelties
Nacho Libre Baptized Gif
Whitehall Preparatory And Fitness Academy Calendar
20+ Best Things To Do In Oceanside California
Frcp 47
Daly City Building Division
Citibank Branch Locations In Orlando Florida
888-822-3743
Pathfinder Wrath Of The Righteous Tiefling Traitor
Petra Gorski Obituary (2024)
Elven Steel Ore Sun Haven
CrossFit 101
The Sports Academy - 101 Glenwest Drive, Glen Carbon, Illinois 62034 - Guide
Dicks Mear Me
House For Sale On Trulia
La Fitness Oxford Valley Class Schedule
Latest Posts
Article information

Author: Moshe Kshlerin

Last Updated:

Views: 6022

Rating: 4.7 / 5 (77 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Moshe Kshlerin

Birthday: 1994-01-25

Address: Suite 609 315 Lupita Unions, Ronnieburgh, MI 62697

Phone: +2424755286529

Job: District Education Designer

Hobby: Yoga, Gunsmithing, Singing, 3D printing, Nordic skating, Soapmaking, Juggling

Introduction: My name is Moshe Kshlerin, I am a gleaming, attractive, outstanding, pleasant, delightful, outstanding, famous person who loves writing and wants to share my knowledge and understanding with you.