Networking

Allow Microsoft Edge to Access the Network in Firewall or Antivirus

"Allow Microsoft Edge to access the network in your firewall or antivirus settings" means something on your PC or network is stopping msedge.exe from making connections. Open Windows Security, go to Firewall & network protection, choose Allow an app through firewall, and make sure Microsoft Edge is ticked for both Private and Public; then check any third-party antivirus.

The browser error code behind this message is ERR_NETWORK_ACCESS_DENIED. In Chromium's source (the engine Edge is built on) it is error -138, described as "Permission to access the network was denied", and it is used to tell errors "most likely caused by a firewall" apart from other access denied errors. That makes it a local block, not a sign that the website is down.

Step 1: Allow Edge through Windows Firewall

Microsoft's steps for allowing an app through the firewall are:

  1. Open Windows Security and choose Firewall & network protection.
  2. Choose Allow an app through firewall.
  3. Choose Change settings. You may need an administrator password or confirmation.
  4. Find Microsoft Edge in the list and tick its box. To add a program that is not listed, choose Allow another app and enter its path.
  5. Select OK.

A Microsoft Q&A answer for this exact problem also says to tick both the Private and Public columns for Microsoft Edge. Which one applies depends on the network profile of your current connection, so a rule that is only ticked for Private will not help on a coffee-shop Wi-Fi marked Public. For the general version of these steps, see how to allow an app through Windows Firewall.

Step 2: Check the firewall rules from PowerShell

If the Edge entry is ticked but the error continues, a block rule may exist that overrides it. You can list which programs have firewall rules and pick out Edge. Microsoft's documentation says the -Program parameter does not support wildcards, so filter with Where-Object instead:

Get-NetFirewallApplicationFilter | Where-Object Program -like "*msedge.exe" | Get-NetFirewallRule | Format-Table DisplayName, Enabled, Direction, Action

Piping an application filter into Get-NetFirewallRule returns the rules that belong to it, as the cmdlet documentation describes. Look for rows where Action is Block and Enabled is True. Example output, not from a real machine:

DisplayName      Enabled Direction Action
-----------      ------- --------- ------
Microsoft Edge      True   Inbound  Allow
Block Edge out      True  Outbound  Block

A rule like the second row, which blocks outbound traffic, would produce this error. Disable or delete it in Windows Defender Firewall with Advanced Security (search for wf.msc) under Outbound Rules, but only if you recognise it as one you or your IT team did not intend. On a work or school PC, firewall rules may come from Group Policy, and a local change will be overwritten at the next policy refresh. Ask your administrator in that case.

Step 3: Check third-party antivirus and security suites

Windows Firewall is only one possible source. Many antivirus and "internet security" suites run their own firewall or web-protection layer and can block a specific program or filter HTTPS traffic. If one of them is active, the Windows Security list from step 1 can look correct while the other product still blocks Edge.

To find out which product is active, see how to check which antivirus is installed. Then, in that product's own settings, look for these items. Menu names differ by vendor, so these are descriptions rather than exact labels:

  • An application or program control list that contains msedge.exe or "Microsoft Edge" set to block.
  • A firewall mode set to something like "interactive", "strict" or "block all unknown", where a prompt for Edge was dismissed or denied.
  • HTTPS or web scanning features that interfere with browser connections.

Set Edge to allow, or temporarily pause the web-protection feature (not the whole product) to test. If Edge connects with it paused, the product is the cause, and you should fix the rule instead of leaving protection off. If the product asks for a path, right-click the Edge shortcut and choose Open file location to find the exact msedge.exe on your machine.

Step 4: Look at the Windows proxy setting

A proxy that is set but unreachable also stops connections. Chromium has a separate error for that case, ERR_PROXY_CONNECTION_FAILED, but it is worth ruling out. Open Settings > Network & internet > Proxy. Under Manual proxy setup, select Set up next to Use a proxy server and turn it off if you do not use one. Under Automatic proxy setup, Automatically detect settings is the normal default for home users. Leave these alone on a managed work PC, where the proxy is usually required.

Step 5: Reset the Winsock catalog

If the firewall and antivirus are clean, a damaged Winsock configuration can break network access for programs. Microsoft documents netsh winsock reset as resetting the Winsock catalog to a clean state, removing custom layered service providers, to resolve problems caused by corrupted Winsock settings. Run this in an elevated Command Prompt, then restart the PC:

netsh winsock reset

This affects every program on the PC, not only Edge, and it removes any custom Winsock providers that some older VPN or security software installed. If your security product stops working after the reset, reinstall or repair it.

Step 6: Reset Edge itself

The Microsoft Q&A answer's last suggestion is to type edge://settings/reset in the Edge address bar and reset the browser settings. Do this last, since it clears your customisations. Disable extensions first if you want a cheaper test: open edge://extensions/ and turn them off one by one. A privacy or security extension can block requests, though that usually produces a different error.

If it still fails

Work out whether the problem is Edge only or the whole PC. If a different browser also fails to load any site, the block is at the system or network level: try another network, such as a phone hotspot, to check whether your router or ISP filter is involved. If it fails on every site only in Edge, focus on the program-specific rules in steps 1 to 3. If one specific address fails, look at ERR_CONNECTION_REFUSED, and if names fail to resolve, see DNS server not responding. Those are different problems from a firewall block.

Frequently asked questions

What does ERR_NETWORK_ACCESS_DENIED mean?
It is Chromium's error code -138. Chromium's source describes it as permission to access the network being denied, used to separate errors most likely caused by a firewall from other access denied errors. Edge is built on Chromium, so the same code applies.
Is it safe to turn off Windows Firewall to test Edge?
Turning it off briefly on a trusted home network is a common test, but it removes protection while it is off, and it will not help if the block comes from third-party antivirus or a proxy. Prefer adding or fixing the Edge rule, and turn the firewall back on straight after any test.
Why does only Edge fail while Chrome works?
Firewall rules and antivirus web filters are often tied to a specific program file. If the rule or filter for msedge.exe is missing, disabled or set to block, Edge fails while another browser with a working rule connects normally.
Will resetting Edge delete my bookmarks?
The reset page at edge://settings/reset restores settings to their defaults, and the confirmation dialog in your Edge version lists exactly what will change. Read it before you confirm. If you sync with a Microsoft account, check that sync is on first so your data is kept.

Sources