English
简体中文繁體中文EnglishРусскийفارسی

HomeColumnWindows

The store app loopback restriction

Windows Store apps are not allowed to reach 127.0.0.1 by default, so they lose their connection when the system proxy is on. Where the restriction comes from, the CheckNetIsolation command that exempts an app, and using TUN instead.

Checked on

Signs at a motorway interchange: loopback means a request turning back to the same machine
Signs at a motorway interchange: loopback means a request turning back to the same machine DCBS18, CC BY 3.0

With FlClash's system proxy on, browsers work fine, yet Microsoft Store, Mail, Weather and some games spin or report no connection, and turning the proxy off fixes it. This is not a FlClash problem but a restriction Windows places on that kind of app.

This restriction has existed for years. Windows 8 introduced this kind of isolated app and, for safety, stopped it from reaching network services on the same machine by default, so that one app could not probe another program through a local port. Developers debugging their own store apps hit the same wall, which is why Windows ships the CheckNetIsolation tool.

Why it happens

Apps from Microsoft Store (once called UWP apps) run in an isolated environment that by default may not connect to the local address 127.0.0.1. This is called the loopback restriction. The system proxy works precisely by handing requests to a port on 127.0.0.1, so when these apps follow the system proxy, Windows blocks them.

AppHonours the system proxyCan reach 127.0.0.1
Ordinary desktop programsYesYes
Store apps (default)YesNo
Store apps (exempted)YesYes
A coiled network cable: loopback is a request going round and back to this machine
A coiled network cable: loopback is a request going round and back to this machine ProtoplasmaKid, CC BY-SA 4.0

Fix one: exempt the app from loopback

Windows' built-in CheckNetIsolation tool can exempt a given app. First find the app's package family name in PowerShell:

Find the package family name
Get-AppxPackage *WindowsStore* | Select-Object Name, PackageFamilyName

Then add the exemption from an administrator terminal (Microsoft Store as the example):

Add a loopback exemption
CheckNetIsolation.exe LoopbackExempt -a -n="Microsoft.WindowsStore_8wekyb3d8bbwe"

List existing exemptions with CheckNetIsolation.exe LoopbackExempt -s, and remove one with -d in place of -a.

A shop window: store apps live behind glass and cannot touch the machine by default
A shop window: store apps live behind glass and cannot touch the machine by default Hines Studio, Public domain

Fix two: use TUN instead

With FlClash's TUN on, traffic is taken over at the adapter level and no longer depends on 127.0.0.1, so store apps can use the proxy or go direct normally. It needs administrator permission. For anyone who does not want to exempt apps one by one, this is the easiest way.

Fix three: let them go direct

Store updates and mail do not need the proxy anyway. Add their domains to the system proxy's bypass list, or write DIRECT rules. FlClash also has an "Apple and Microsoft direct" rule preset that sends system services straight out.

Which apps are affected

Typically apps installed from Microsoft Store that run isolated: Microsoft Store itself, Weather, Xbox, and some third-party apps installed from the store. Ordinary programs installed from a website's installer are not affected, even if they are also listed in the store.

To check, run Get-AppxPackage | Select-Object Name in PowerShell to list all such apps; only names on that list can be affected.

Exempting every store app at once

A command circulates online that exempts all store apps in a loop:

Bulk exemption (use with care)
Get-AppxPackage | ForEach-Object { CheckNetIsolation.exe LoopbackExempt -a -n="$($_.PackageFamilyName)" }

It is convenient, but it tears down that layer of isolation wholesale. Safer is to exempt only the few apps that truly need the proxy, and let the rest go direct or use TUN.

Compared with TUN

Loopback exemptionTUN
Administrator rightsWhen adding exemptionsWhen turning it on
ScopeOnly exempted appsAll of the PC's traffic goes through FlClash
UpkeepNewly installed apps need exempting tooSet once
Is adding an exemption safe?

It only lets that app reach local addresses and changes nothing else. Exempt just the apps you need.

Still no connection after exempting?

Check that the package family name in the command is exact and that you ran it in an administrator terminal. It may also be the app's own servers being unreachable; look at its connections on the Requests page.

The Windows taskbar says "No Internet"?

That is the connectivity check. 0.9.5's default fake-ip filter lists Windows' real check hosts, so updating usually fixes it.

Do exemptions survive system updates?

They may disappear after a major update or reinstalling the app; just add them again. -s lists the current exemptions.

Is there a graphical tool instead of commands?

Third-party tools let you tick apps to exempt; they use the same system feature. Make sure the tool comes from a reliable source.

Next

Related settings

On this page: FlClash UWP loopback, Microsoft Store not connecting, Windows Store proxy