UWP Loopback Restrictions: Your Browser Works, but the Store Doesn’t
When Clash or a client using the mihomo (Clash Meta) core enables the system proxy, Windows typically points the proxy address to localhost, such as 127.0.0.1:7890. Your browser connecting to that port doesn’t mean Microsoft Store can connect to it too. Apps isolated by the AppContainer network sandbox can’t make loopback connections by default, unlike conventional desktop programs. Even if an app reads the system proxy settings, Windows may block it from connecting to the local proxy before its request ever reaches Clash’s rule engine.
A loopback exemption lets a specified app container connect to localhost. It is not a port-specific permission for 7890, nor does it force an app to use the system proxy. Not every app installed from Microsoft Store is a UWP app—the Store also distributes desktop apps. If the target app doesn’t use the system proxy, or another process makes the request, exempting the package associated with the app’s interface may not help.
Check the Windows System Proxy and Clash Listening Port
- On Windows 11 24H2, open Settings → Network & internet → Proxy, then check the toggle and address under Manual proxy setup. If your client uses an automatic configuration script, the manual proxy toggle alone won’t tell you which settings are active. Test one connection method at a time to avoid mixing configurations.
- Check the active HTTP or mixed port in your client. mihomo’s
mixed-portaccepts both HTTP and SOCKS connections; a port configured only assocks-portcan’t be used as Windows’ manual HTTP proxy port. This guide uses127.0.0.1:7890as an example. Use the value shown in your client; there’s no need to enable Allow LAN. - Test the port from a regular PowerShell window, then use
curl.exeto send a request explicitly through the HTTP proxy. The first command checks only whether the TCP port is reachable. The second checks whether a desktop process can complete an HTTPS request through that proxy. Neither test verifies the UWP app itself.
Test-NetConnection -ComputerName 127.0.0.1 -Port 7890
curl.exe --proxy http://127.0.0.1:7890 --head --max-time 15 https://example.com/
If TcpTestSucceeded is False, first check that the client core is running and that you entered the right port. If TCP succeeds but the second command fails, check the client logs to distinguish a proxy protocol mismatch from an upstream connection or certificate error. Fix this basic connection path before changing app exemptions.
CheckNetIsolation: Add or Remove an Exemption for One App
Find the Package Family Name
Open PowerShell under the Windows account where the problem occurs. The example below looks up packages registered for the current user, using Microsoft Store as an example. Use the output’s PackageFamilyName as the argument in the next steps. Name is a short name, while PackageFullName includes version and architecture details; don’t use either in its place.
Get-AppxPackage -Name Microsoft.WindowsStore |
Select-Object Name, PackageFamilyName
Microsoft Store typically returns Microsoft.WindowsStore_8wekyb3d8bbwe. To troubleshoot Mail or another app, run the command below and find the matching package in the output. The app’s display name may be localized and may not match its package name. Don’t guess package names or add exemptions in bulk. If you can’t find the app, first confirm it’s installed for the current account.
Get-AppxPackage |
Sort-Object Name |
Select-Object Name, PackageFamilyName
Add the Exemption and Verify It
In Windows 11, right-click Start → Terminal (Admin) to open PowerShell. First list existing exemptions to see whether the package is already there. After confirming the exact package name, add it and check the list again. If you elevate using a different administrator account, use the package name you looked up under the affected user account.
CheckNetIsolation.exe LoopbackExempt -s
$pfn = 'Microsoft.WindowsStore_8wekyb3d8bbwe'
CheckNetIsolation.exe LoopbackExempt -a "-n=$pfn"
CheckNetIsolation.exe LoopbackExempt -s
Use -s to list exemptions, -a to add one, and enter the package family name after -n=. Once the target package appears in the list, close and reopen the app, leave the system proxy enabled, and repeat the action that failed. Don’t change nodes, rules, or the system proxy port at the same time; otherwise, you won’t know which change fixed the problem.
Remove Only the Entry You Added
When testing is done, an exemption doesn’t help, or you no longer need the local proxy, use -d to remove the entry you added. If the package was already listed, don’t remove it as though it were part of this change. Keep existing settings for other apps; don’t clear the entire list to troubleshoot one app.
$pfn = 'Microsoft.WindowsStore_8wekyb3d8bbwe'
CheckNetIsolation.exe LoopbackExempt -d "-n=$pfn"
CheckNetIsolation.exe LoopbackExempt -s
Built-In Client Tools: Manage Exemptions by App
Clients with a loopback management tool can update the same Windows exemption list through a graphical interface. In the discontinued Clash for Windows interface, the path is General → UWP Loopback → Launch Helper. This path is included to help identify the legacy interface, not to recommend installing the old client. Not every mihomo frontend includes this tool; if you can’t find it, use the Windows commands above.
- Open the loopback tool and approve the administrator prompt.
- Find Microsoft Store or the affected app in the list, and select only the entry you’ve verified.
- Select Save Changes, then reopen the app and test again. You can also run
CheckNetIsolation.exe LoopbackExempt -sto confirm the change was saved to Windows.
Exemptions are part of Windows app container networking, not rules in a Clash configuration file. Changing subscriptions, replacing a YAML file, or closing the client won’t remove a saved exemption. You can also remove entries added through a graphical tool with the command line.
Exemption Added, but the App Still Fails: Trace the Request
| What you see | What to do next |
|---|---|
| The package isn’t listed | Make sure the tool was run as an administrator and the change was saved. Check the package family name again, and verify that you looked up the app under the affected user account. |
| The package is listed, but the client shows no new connection | Reopen the app and confirm its system proxy address matches the listening port. If no connection appears, check whether another process or system service handles the feature and whether that process uses the system proxy. |
| The client shows a matching connection, but the request fails | Check the connection’s destination domain, matched rule, and outbound policy at the time of the test. Handle node timeouts, blocked destination domains, and TLS errors separately; don’t keep expanding the exemption list. |
| The Store homepage loads, but sign-in or downloads fail | Test sign-in and downloads separately, noting the step that fails and any error message. A page loading proves only that some requests succeeded; account services and download components may use different connection paths. |
For testing, repeat the same action in rule mode and check the connection log to see whether the request reaches the core. To distinguish the system proxy from TUN, test them separately: first use the system proxy to verify the local HTTP port, then disable the system proxy and test TUN on its own. If TUN captures the target traffic, the app may not need to connect directly to 127.0.0.1:7890, so no loopback exemption is needed for that path. Whether traffic is captured depends on routing, exclusions, and the process making the request—not just whether the TUN toggle is on.