Could not connect to server your firewall is probably blocking the connection?

Could not connect to server your firewall is probably blocking the connection?
Download Article

Download Article

If your internet is working fine, but a specific program can't access an online feature or a website consistently fails to load, your firewall might be stopping it. Whether you're using Windows or Mac for your home network, it's pretty easy to check your firewall settings and tell your operating system to let you play your game or use a new mail app. If that doesn't solve it, advanced users on Windows can poke deeper into the settings to see if the firewall is blocking specific ports. Keep in mind that changing your computer's firewall settings won't help you get around network firewalls—for instance, the firewalls a school might use to block games.

  1. Could not connect to server your firewall is probably blocking the connection?

    1

    Search for "allow an app" or "allow a program". Select the Start menu and type in "Allow an app through Windows Firewall" (in Windows 10) or "Allow a program..." (for earlier versions of Windows). Select the matching result that shows up.[1] If the search doesn't work, reach this setting manually instead:

    • Windows 10: Control Panel → System and Security → Administrative Tools → Windows Defender Firewall with Advanced Security → Click "Allow an app..." in the left pane.[2]
    • Windows 7 or 8: Control Panel → System and Security → Windows Firewall → Click "Allow a program..." in the left pane.[3]

  2. Could not connect to server your firewall is probably blocking the connection?

    2

    Look for the app that might be blocked. The apps are listed in alphabetical order. Scroll through them and look for the name of the application you're concerned about.[4]

    • If you can't find the app, click Allow another app or Allow another program near the bottom corner of the window. Select the app in the window that pops up, or enter its file path.[5]

    Advertisement

  3. Could not connect to server your firewall is probably blocking the connection?

    3

    Select Change Settings. This button is near the top right corner of the window. You might need to enter an administrator password.[6]

  4. Could not connect to server your firewall is probably blocking the connection?

    4

    Check or uncheck the boxes to change this setting. If you want an app to be allowed through the firewall, make sure the box to the left of its name is checked. If you want the firewall to block the app, uncheck the box.[7]

  5. Could not connect to server your firewall is probably blocking the connection?

    5

    Apply this setting to Private and/or Public networks. The two checkboxes on the right let you choose different settings for Private networks (like your home network) and Public ones (for coffee shops, airports, and so on). You're more vulnerable to security threats on a public network, so you might want to uncheck the "Public" box for apps that deal with sensitive info.[8]

    • You might run into firewall issues if Windows mistakenly thinks your home network is public. Click the WiFi symbol on the taskbar, selecting Properties next to your WiFi network name, and look under "Network profile". If "Public" is selected, change this setting to "Private."[9]

  6. Could not connect to server your firewall is probably blocking the connection?

    6

    Try removing and re-adding an app. Some users have had issues with these settings not working correctly. If an app is marked "allowed" but you're still having connection issues, try manually removing it from the list by unchecking the box next to its name. Add it back again with the Allow another app button on the bottom right and see if it works now.[10]

    • If you try this and restart your computer, and it still isn't working, Windows Firewall might be blocking a port the app is trying to use. Read the method below for instructions on how to change the port settings.

  7. Advertisement

  1. Could not connect to server your firewall is probably blocking the connection?

    1

    Open Windows Firewall. You can find it by typing "Windows Firewall" into the Start Menu, or by opening Control Panel, then System and Security, then Administrative Tools. (In earlier versions of Windows, the Firewall is located directly in the System and Security folder.)[11]

  2. Could not connect to server your firewall is probably blocking the connection?

    2

    Open the Advanced Settings. Click this option in the left-hand pane. You may need to enter an administrator password.

  3. Could not connect to server your firewall is probably blocking the connection?

    3

    Check Outbound Rules for blocked IPs. Select "Outbound Rules" in the left-hand pane. If a website is blocked, it will show up in the list as a red symbol next to the words "Blocked IPs" or "IP block."[12]

    • If there are no blocked IP rules, but you still get a message about a firewall when you try to access a site, the organization that runs your network (your employer, for instance) probably has an additional firewall set up. These settings cannot be changed from your machine.

  4. Could not connect to server your firewall is probably blocking the connection?

    4

    Find the website's IP address using Command Prompt. Type "Command Prompt" into the Start menu and click the result to open it. Type the following command exactly as it appears below, but use the URL of the website you suspect is blocked in place of "wikihow.com" (without including "www."):[13]

    • ping wikihow.com -t
    • Press Enter to run the command.
    • You should see "Reply from" followed by a string of numbers. This is the IP address. Write it down.
    • If this command doesn't work, try nslookup wikihow.com instead.[14]

  5. Could not connect to server your firewall is probably blocking the connection?

    5

    Disable any rules blocking that IP address. Go back to the list of Outbound Rules you have open. Click an IP-blocking rule, then select Properties on the right pane to see which IP addresses are blocked. If the IP address you wrote down is listed, select it, then click the "Remove" button to its right.

    • If you'd like to remove the entire rule instead of editing a single IP address, close the Properties menu, make sure that rule is still selected, and click "Delete" on the right pane.

  6. Could not connect to server your firewall is probably blocking the connection?

    6

    Add a new rule if you want to block an IP address. If you are trying to block a website, make a new Outbound Rule by selecting New Rule underneath Actions in the right pane. Follow these steps in the rule creation window:[15]

    • Click Custom, then Next.
    • Click All Programs, then Next.
    • Leave the Protocol settings alone and click Next.
    • Under "Which remote IP addresses does this apply to?", select "These IP addresses:"
    • Click "Add" to the right of the lower text field. In the pop-up window, enter the IP address you wrote down into the "This IP address" field. Press OK, then Next.
    • Select "Block the connection", then Next.
    • Check all three boxes if you'd like to block the website on all networks. (If you'd only like to block it while connected to unsecure public WiFi, check only Public instead.) Click Next.
    • Type in a name for your rule so you remember what it does. Click Finish.

  7. Advertisement

  1. Could not connect to server your firewall is probably blocking the connection?

    1

    Check for blocked programs before trying this method. Changing your firewall's port behavior is a bit technical, and a mistake here can cause issues with security or function. If you haven't tried it yet, start with the much easier test for blocked applications.

    • You won't need an IT degree or anything, but this method could be tricky if you're not used to troubleshooting network issues. It gets a lot easier if you already have some idea of the problem. (For instance, you could check the customer support forums for the app you are having trouble with, and look for known firewall issues with specific ports.)

  2. Could not connect to server your firewall is probably blocking the connection?

    2

    Open the Windows Firewall. This is called "Windows Defender Firewall with Advanced Security" on Windows 10, or just "Windows Firewall" in earlier versions.[16] You can search for this in the Start Menu, or locate it inside Control Panel → System and Security → Administrative Tools.[17]

  3. Could not connect to server your firewall is probably blocking the connection?

    3

    Select "Advanced Settings" on the left menu. You might need to enter an administrator password.[18]

  4. Could not connect to server your firewall is probably blocking the connection?

    4

    Click Properties. This is located underneath the "Actions" header in the right-hand panel, or in the top Actions menu.[19]

  5. Could not connect to server your firewall is probably blocking the connection?

    5

    Select the tab that matches your network. Windows Firewall uses different settings for different networks. In the top row of tabs, select "Private Profile" if you're on a home network or "Public Profile" if you're on public WiFi. (The "Domain Profile" is for secure networks with a domain controller, mostly in corporate settings.)[20]

    • You can check how your network is classified in the network's Properties window, under "Network profile".[21]

  6. Could not connect to server your firewall is probably blocking the connection?

    6

    Customize your logging settings. Under the "Logging" heading, click Customize. In the window that opens, select the drop-down menu next to "Log dropped packets" and set it to "Yes". Make a note of the file path at the top, next to "Name". Hit "OK" twice to close the windows and save your settings.[22]

    • With this enabled, your computer keeps a text record of network activity, which you can use to pinpoint the issue you're having.

  7. Could not connect to server your firewall is probably blocking the connection?

    7

    Test the application that's having issues. Run the application or feature that you think might be running into your firewall. This should record the attempt in your firewall log so you can see what's going on.

    • You might need to close and reopen the log between tests to see the latest info.

  8. Could not connect to server your firewall is probably blocking the connection?

    8

    Open the firewall log. To see your firewall activity, go to the file path location shown in your logging settings. By default, this is your home directory (for instance, C:\Windows) followed by \system32\logfiles\firewall\firewall.log.[23]

  9. Could not connect to server your firewall is probably blocking the connection?

    9

    Look for port info in the log. Use the Fields line at the top as a guide for how to read the log entries (for example, the Fields line starts with "date time", so the first two items in each entry are the date and time of the event). Fortunately, you can ignore most of this info and look for the following:[24]

    • "Action" lists the firewall's behavior. "ALLOW" means the traffic went through. "DROP" means it was blocked.
    • "Protocol" typically lists either TCP or UDP. (Your firewall needs to know which of these protocols is being used to govern data transmission. Make a note of this.)
    • "dst-port" stands for "destination port" — most likely what your firewall is looking for
    • "src-port" stands for "source port"; this is not relevant in most cases[25]
    • Since a mistake in the next step can mess up your network connectivity or security, only continue once you're confident you've found the right log entry. You can also search for info on that port online, since some ports are associated with certain common uses.

  10. Could not connect to server your firewall is probably blocking the connection?

    10

    Use this info to edit your firewall rules. Return to the advanced settings window for your firewall. Use the actions in the left pane to create a new rule:[26]

    • Click "Outbound Rules" to alter how your programs are allowed to connect to the network. ("Inbound Rules" affect how other systems connect to you; change these only if you know what you're doing)
    • Click "New Rule"
    • Select "Port", then "Next"
    • Select "TCP" or "UDP" and enter the port number you'd like to allow or block. (This is the info you got from your log.)
    • Choose "Allow", "Allow if it is secure", or "Block", depending on what you'd like your firewall to do.
    • Choose the Profile type(s) of the networks you want the rule to apply to.
    • Name your rule and save it.

  11. Could not connect to server your firewall is probably blocking the connection?

    11

    Check whether the new rule worked. Repeat the action that you've been having problems with (for instance, opening an application, running a program, or visiting a website). If it now works as intended, you're done. If not, open the log again and double-check that you've used all the right info, and that there are no other issues being recorded (such as additional undesired blocks on other ports).

  12. Could not connect to server your firewall is probably blocking the connection?

    12

    Turn off logging once you're done troubleshooting. Return to the Windows Firewall advanced settings. Select the profile tab you changed before, click Customize under Logging, and turn off dropped packet logging. This will help prevent slowdowns that can happen from constant logging.[27]

  13. Advertisement

  1. Could not connect to server your firewall is probably blocking the connection?

    1

    Go to the Security settings in System Preferences. Click the Apple icon in the top left corner of your screen, and choose System Preferences. Click "Security" (or "Security & Privacy").[28]

  2. Could not connect to server your firewall is probably blocking the connection?

    2

    Select the Firewall tab. If you see "Firewall: Off", which is the default setting for Apple computers, then this firewall isn't blocking anything (though there are still other protections built in to the operating system). If it is on, keep reading to get into the specifics.

    • If there is no Firewall tab, you're probably using an old version of MacOS (before 10.5.1) without a firewall. You might be having firewall issues from a third-party firewall application. You can try disabling that application, changing its settings, or contacting the customer support of the company that sells that software.

  3. Could not connect to server your firewall is probably blocking the connection?

    3

    Click the lock symbol to make changes. Click the lock in the bottom left corner of the window. Enter an administrator username and password.

  4. Could not connect to server your firewall is probably blocking the connection?

    4

    Open Firewall Options. (This button won't appear unless the firewall is on and you've unlocked the settings.)

  5. Could not connect to server your firewall is probably blocking the connection?

    5

    Use the + and - buttons to change the rules. If the firewall has any application-specific rules, these are displayed in the large white field in the center of the window. You can easily change them:[29]

    • To allow or block a new application, click the small + under this field. In the pop-up window, locate the application, select it, and hit Add.
    • Once the application is listed, click "Allow..." or "Block..." to the right of its name to open a drop-down menu and switch between the two settings.
    • To remove a rule you don't need, select the application, then click -.

  6. Advertisement

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

  • If you have installed a third-party firewall, check that program's settings or contact customer support to troubleshoot firewall issues.

  • If you are using an older version of Windows, some of the menus and settings may have slightly different names or locations, but the general instructions will most likely still work.

  • When editing firewall rules, make a detailed record of your changes in case you run into problems and want to undo it.[30]

Advertisement

  • Setting your firewall to allow all inbound traffic to a port can leave you vulnerable to malware.

Advertisement

References

About This Article

Thanks to all authors for creating a page that has been read 1,108,072 times.

Is this article up to date?

How do I stop firewall from blocking my Internet connection?

Firewall Blocking Wifi?.
Try Running The Troubleshooter For Internet Connections. Allow Any Feature Or App Through Your Firewall. Try Checking HSS DNS Leak Rules In Your Public And Private..
Try Resetting the Firewall To Its Default Settings..
Disable the Firewall..
Verify Your Connection..

What is firewall blocking the connection?

The Windows firewall works like a filter between your PC and the internet, blocking or allowing connections depending on whether or not they're safe. Firewalls will block or allow a lot of traffic automatically, but sometimes you will see a message asking you if you want to allow a program to connect to the internet.

Can't connect to wifi because of firewall?

To fix firewall blocking Wi-Fi, you can choose to disable antivirus. As for Windows Defender Firewall, you can go to Control Panel > System and Security > Windows Defender Firewall > Turn Windows Defender Firewall on or off and then disable it.

How do I stop chrome from blocking my firewall?

Go to the Settings and click on the “Allow an app or feature through Windows Defender Firewall.” This is the fastest way if you're looking how to allow Google Chrome through the firewall on Windows 10. The same procedure applies to other Windows OS versions as well.