Checking Windows Firewall for blocked ports - Knowledgebase (2024)

If you have Windows Firewall enabled then chances are that eventually you are going to find that it will be blocking one or more ports required by your applications. Checking Windows Firewall for blocked ports will help you troubleshoot your issues.

To check if Windows Firewall is blocking a port(s) that your machine is trying to communicate, follow the steps below…


Pre-Check: What ports is the machine listening on?

First off, let’s check if your server is even listening on the specific port you think might be being blocked by Windows Firewall.

To check what ports a Windows machine is listening on, do the following:

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.

Option 1: Checking Windows Firewall for blocked ports via Windows Firewall Logs

The first way to check what ports Windows Firewall is blocking is to use the Windows Firewall logs. To do this, follow these steps:

  1. Enable Dropped Packets Logging
    1. Go to Start >> Control Panel >> Administrative Tools >> Windows Firewall with Advanced Settings
    2. From the Actions pane (right-pane) click on Properties
    3. Select the appropriate firewall profile (Domain, Private or Public). Alternatively, enable logging on all three profiles
    4. Click the Customise button under the Logging section
    5. Change the Log Dropped Packets option to Yes
    6. Take note of the file path to where the logs will be stored
    7. Click OK to enable logging (see screenshot below)
  2. Navigate to the logging file path (as per file location in the Logging settings above)
  3. Check the log file for any blocked ports

    Checking Windows Firewall for blocked ports - Knowledgebase (1)

Option 2: Checking Windows Firewall for blocked ports via the Command Line

You can also get a list of the active listening and the blocked ports by using the Windows Firewall commands through the command prompt. This is documented below:

To get a list of the Windows Firewall blocked ports and active ports run:

Checking Windows Firewall for blocked ports - Knowledgebase (2)

To get a list of the Windows Firewall configuration run:

Checking Windows Firewall for blocked ports - Knowledgebase (3)

Note: The netsh firewall set of commands have been depreciated (although they still work on Windows 2012 R2). The new set of commands are netsh advfirewall firewall.

At this stage I haven’t been able to work out how to get a list of the blocked ports using these new set of commands and hence I still use the old commands.

For more information about netsh advfirewall firewall commands, see the following post >>> (How to use netsh advfirewall firewall set of commands).


Checking if other firewalls are blocking ports

What if it isn’t Windows firewall that is blocking your port but rather another external firewall? How do we check if another firewall is blocking any ports?

The following command will show you if possibly any other firewalls are blocking any ports for your application. How it works is pretty simple, if nothing is returned it means no ports are currently being blocked. If something is returned, then possibly that is the port that might be blocked. This is a good starting point to check firewall logs on the actual firewall to see if it is being blocked or not.

Checking Windows Firewall for blocked ports - Knowledgebase (4)

Linux? Although this is a Windows article, in the event that you need to find out if firewalls are blocking any ports on your Linux machines, you can run the following command:

Checking Windows Firewall for blocked ports - Knowledgebase (5)

Contact Us

If you have any questions or need further assistance, feel free to contact our support team. Visit our Support Page for more information.

Are your websites helping you get business? Our technical support team provides custom solutions and fixes all errors in no time.

Avoid misconfigurations! Click here for a customized and error-free network to boost your business.

Worried about your broken website? Get assistance from our server specialists to fix all errors.

Checking Windows Firewall for blocked ports - Knowledgebase (2024)

FAQs

How to check if a port is blocked by firewall in Windows? ›

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 stop Windows Firewall from blocking ports? ›

Disabling a Firewall Rule

Click on either “Inbound Rules” or “Outbound Rules” on the left-hand side of the window, depending on the direction of traffic associated with the rule. Locate the rule you want to disable in the list, right-click on it, and select “Disable Rule”.

Does NetStat show blocked ports? ›

Windows: The Netstat.exe utility has a switch that can display the process identifier (ID) associated with each connection to identify port conflicts.

How do you check if a port is open on a firewall? ›

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 do I unblock a 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 to check if port 3306 is open or not? ›

How do you check port 3306 is open or not? You can open a terminal window and use the “netstat” command to check. You would do this on the system that you want to check. You will want to look for a line ending with 3306 or mysql on the “Local Address” column.

Does Windows Firewall block ports by default? ›

When first installed, network applications and services issue a listen call specifying the protocol/port information required for them to function properly. Since there's a default block action in Windows Firewall, you must create inbound exception rules to allow the traffic.

Why do firewalls block ports? ›

The main reason you interject a firewall between the Internet and your system is to get in the way of outsiders trying to access open ports. The applications on your network's machines can open ports without waiting for your knowledge or permission.

What is the problem with port blocking? ›

Port blocking can complicate application design and development and create uncertainty about whether applications will function properly when they are deployed. Port blocking can also cause applications to not function properly or “break” by preventing applications from using the ports they were designed to use.

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 check ports with netstat? ›

How to check for open ports on Windows
  1. Open the Command Prompt. ...
  2. Type “netstat -aon” and hit enter.
  3. Look for the port numbers in the LISTening state. ...
  4. If the port numbers aren't in the LISTening state, you'll need to open them manually. ...
  5. Open C:\port_test.
Aug 17, 2022

How to check firewall for blocked 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. On a Mac, click the Apple icon > System Settings > Network > Firewall > Options to check your firewall settings.

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.

How do I check port status in Windows? ›

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 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.

How do I know if port 3389 is blocked? ›

Use the psping tool to test whether you can reach the affected computer by using port 3389. Go to a different computer that isn't affected and download psping. Check the output of the psping command for results such as the following: Connecting to \<computer IP\> : The remote computer is reachable.

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

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 do I unblock a port in Windows 10 firewall? ›

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

Top Articles
How To Easily Get Rid Of Static Cling From Clothes | ZIPS
10 Most Unbiased News Sources & Channels to Follow in 2024
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
Things To Do In Atlanta Tomorrow Night
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Dmv In Anoka
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
Selly Medaline
Latest Posts
Article information

Author: Prof. An Powlowski

Last Updated:

Views: 5753

Rating: 4.3 / 5 (44 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.