Windows UWP apps not working with Clash proxy? 3 ways to fix loopback access
Microsoft Store, Mail, and other UWP apps are blocked from accessing localhost by default. Learn three ways to fix it: CheckNetIsolation, a built-in client tool, or TUN mode.
First, make sure the local proxy is listening
If websites load in your browser through Clash but Microsoft Store keeps spinning, the problem may be the app's first connection to the local proxy. Clash's system proxy typically directs requests to a listening port on 127.0.0.1. Desktop apps can connect to this address, but apps running in an AppContainer may not be able to. Conversely, an app installed from the Store doesn't necessarily use an AppContainer, so its source alone isn't enough to tell.
- Open Windows Settings → Network & internet → Proxy and check that the system proxy points to your Clash client. On work-managed devices, don’t overwrite an existing setup script or organization-managed proxy.
- Check which HTTP or mixed port is actually active in your Clash client. The examples below use
7890; if the client shows7897, change the port in the commands accordingly. The external controller port is not the app's proxy port. - Test the listener in a regular PowerShell window, then send a request explicitly through the HTTP proxy. The second command works with HTTP or mixed ports, not SOCKS5-only ports.
Test-NetConnection -ComputerName 127.0.0.1 -Port 7890
curl.exe -I --max-time 15 --proxy http://127.0.0.1:7890 https://example.com/
TcpTestSucceeded : True only means a process is accepting TCP connections at that address. If the second command returns the target site's HTTP response headers, check the Clash connections page too to confirm the desktop test went through the proxy. Neither test proves that a Store app can access localhost. If the first test fails, troubleshoot the listener. If it succeeds but the second fails, check the port type, proxy authentication, and connection logs.
Method 1: Exempt a single app with CheckNetIsolation
If you only need to fix Microsoft Store, start by exempting the Store package alone. This keeps your existing system proxy and doesn't require enabling LAN sharing. Open PowerShell under the Windows account that runs the Store, then look up the package family name:
Get-AppxPackage -Name Microsoft.WindowsStore |
Select-Object Name, PackageFamilyName
The Microsoft Store package family name is usually Microsoft.WindowsStore_8wekyb3d8bbwe; use the value returned on your device. PackageFamilyName doesn't include the app version. Don't substitute PackageFullName, which includes the version and architecture. To troubleshoot Mail, first check which app package you're using. For the legacy Mail and Calendar app, look up microsoft.windowscommunicationsapps. If you've switched to the new Outlook, don't assume an exemption for the old package applies to it. If the query returns nothing, make sure the app is installed for the current user.
Add, test, and remove the exemption
Right-click Start → Terminal (Admin), open PowerShell, list existing exemptions, then add the Store package. If your package family name differs, replace the value on the second line with your query result. Note whether the entry already existed so you don’t remove a pre-existing setting when reverting.
CheckNetIsolation.exe LoopbackExempt -s
$pfn = 'Microsoft.WindowsStore_8wekyb3d8bbwe'
CheckNetIsolation.exe LoopbackExempt -a "-n=$pfn"
CheckNetIsolation.exe LoopbackExempt -s
Once the list includes the target package, close and reopen Microsoft Store. Keep the Clash system proxy enabled, refresh a product page, then test an update in Library separately. A product page loading doesn’t guarantee downloads will work: different components may handle sign-in, browsing, and downloads. If only downloads fail, note the time and error code, then check the connection log for that period. Don’t exempt every related package.
To remove the Store exemption you just added, run this command in an administrator terminal, then check the list. Don't clear all exemptions.
CheckNetIsolation.exe LoopbackExempt -d -n=Microsoft.WindowsStore_8wekyb3d8bbwe
CheckNetIsolation.exe LoopbackExempt -s
Method 2: Use your client's UWP loopback tool
Some Windows clients offer a “UWP Loopback” option in the tray menu or settings; its name and location vary by client and version. It usually manages the same Windows loopback exemption list, not a separate proxy route. If you can’t find it, use the system command in the previous section—there’s no need to switch cores just to find a menu.
- Open the tool and identify the target by app name or package family name. If several similar entries appear, use the package family name returned by PowerShell.
- Select only the package you need to fix, then save or apply the changes as prompted. If Windows asks for administrator approval, make sure the request comes from your client or its loopback tool before approving it.
- Run
CheckNetIsolation.exe LoopbackExempt -sto confirm the change took effect, then reopen the app and test it. To undo the change, deselect the package and save.
If the list hasn't changed after saving, check whether the tool has administrator privileges or whether your organization restricts these changes. If the correct entry is already there but Clash still shows no corresponding connection after you reopen the app, don't keep adding it through both the GUI and the command line. An exemption won't make a component that ignores the system proxy start using one.
Method 3: Route direct traffic through TUN
With a client and core that support TUN, such as mihomo, a virtual network adapter can handle traffic matching your routes. The app sends requests to remote addresses without first connecting to 127.0.0.1:7890. TUN bypasses the local-proxy hop; it doesn't grant an app a loopback exemption. If the app is still configured to use an explicit local proxy, enabling TUN alone won't remove that connection restriction.
- Note the current status of the system proxy, TUN, and any other VPNs. Turn on “TUN mode” in the client, install or enable its service as prompted, and confirm the status shows it’s running—not just that the toggle is on.
- On devices where you’re allowed to change proxy settings, temporarily turn off “System Proxy” in Clash. Check that Windows Proxy settings have no manual entry pointing to the local port, and check whether the app has its own proxy setting pointing there. Change only these settings, then repeat the action that failed.
- Open the client’s “Connections” view or logs and check for the target traffic at the relevant time. In rule mode, a
DIRECTmatch means the rules sent traffic directly; it doesn’t mean TUN failed to capture it. If traffic matches a proxy group but still fails, check the selected node and the error.
If turning on TUN breaks regular web browsing too, turn it off, restore the previous settings, and check whether the network returns to normal. Then look for routing conflicts with other VPNs and check whether the logs show a DNS resolution failure or a connection timeout. For just one Store app, a package-specific exemption is usually easier to test and undo. If several apps ignore the system proxy, assess TUN's impact on all device traffic before enabling it.
Use connection logs to choose your next step
| Test result | Next step |
|---|---|
| Can't connect to the local port | Check that the client is running and verify the listening address and port. An exemption won't fix a listener that isn't working. |
| Desktop test succeeds and the target package is exempt, but no matching connection appears when you test again | Verify the package family name and identify which component is making the request. Check whether that component uses the system proxy; test TUN separately if needed. |
The Connections page shows a match, but it hits REJECT or an unexpected DIRECT | Check which rule matched and its order, then verify the intended policy. Repeatedly adding loopback exemptions won't change routing decisions. |
| The connection reaches the expected proxy group, but the download still fails | Compare the error code, logs, and failure time to distinguish a node connection failure, a DNS issue, or a Store account or download problem. |
Use the same action for each test, such as refreshing the same product page or retrying the same update. Before trying another method, note the system proxy, TUN status, exemption list, and policy that actually matched. This makes it easier to undo only the changes you made and determine whether the fix addressed the app's connection to localhost or the subsequent remote request.