Check if firewall is blocking port
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. Show 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:
The first way to check what ports Windows Firewall is blocking is to use the Windows Firewall logs. To do this, follow these steps:
Option 2: Checking Windows Firewall for blocked ports via Command LineYou can also get a list of the active listening and the blocked ports by using the Windows Firewall commands through command prompt. This documented below: To get a list of the Windows Firewall blocked ports and active ports run:
To get a list of the Windows Firewall configuration run:
Note: The 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 How To – Allow ICMP ping through the Windows FirewallIf you are looking for how to allow ICMP ping through the Windows Firewall (as this is blocked by default on Windows 2008+ server operating systems), then follow the steps in the following article >>> How To – Allow ping through the Windows Firewall. Checking if other firewalls are blocking portsWhat 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 simply, if nothing is return 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.
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:
For more information about these commands, take a look at this excellent article by Ather Beg – Identifying and Troubleshooting Firewall Access Issues Hope this helps!. Let me know if you have any questions or comments below. |