# 关于UWP应用如何使用代理

## 为何UWP应用无法使用任何代理

{% hint style="info" %}
Win10 所有 UWP 应用均运行在被称为 App Container 的虚拟沙箱环境中，App Container 可以保证应用安全性，但同时也阻止了网络流量发送到本机（即 loopback）， 使大部分网络抓包调试工具无法对 UWP 应用进行流量分析。同样的，该机制也阻止了 UWP 应用访问 localhost，即使你在系统设置中启用了代理，也无法令 UWP 应用访问本地代理服务器。
{% endhint %}

## 解决办法

解决办法有两种

**1. 使用 Fiddler 4 解除 UWP 应用的网络隔离。（此方法最为简单）**

下载安装 Fiddler 应用，下载链接：[Fiddler 官网下载地址 ](https://www.telerik.com/download/fiddler)   （下载前的资料随便填）

**按照下列操作步骤操作**

1. 点击WinConfig       &#x20;
2. 找到并勾选你所有需要解除网络隔离的应用       &#x20;
3. &#x20;点击Save Changes 保存

![Fiddler 4操作示意图](/files/-M1U6XGbLnUIBzY-66EK)

**2. 通过命令行工具解除 UWP 应用网络隔离（这个办法稍微麻烦点）**

&#x20;       Win10 自带了一款名为 CheckNetIsolation.exe 的命令行工具，可以将 UWP 应用添加到排除列表，具体步骤如下：

1\. 通过注册表获取应用的 SID

&#x20;       Win + R 快捷键打开「运行」窗口，输入Regedit打开注册表编辑器。然后复制下面这段地址定位黏贴到地址栏中：HKEY\_CURRENT\_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Mappings

&#x20;       Mappings 文件夹内的内容，就是所有 UWP 应用的对应的 SID。随便点击一个 SID 右边会显示应用名称。找到你要解除网络隔离的应用，复制它的 SID。

![注册表示意图](/files/-M1U6pATTIcl_OGAc6ze)

2.打开 CMD 面板，使用 CheckNetIsolation.exe 解除应用隔离

&#x20;       Win + R 快捷键打开「运行」窗口，输入CMD打开命令行。

&#x20;       直接在终端中输入：CheckNetIsolation.exe loopbackexempt -a -p=      等号后面加上你刚刚复制的应用 SID， 接着回车后命令行显示完成说一般就成功了。一次只能解除一个应用，想要解除多个应用，找到对应的 SID，依次解除即可。<br>

![CMD示意图](/files/-M1U752yg9uVeQ2HI9q7)

## 开启代理工具

**提供两种客户端,请根据需求自行选用**

**Clash操作较为简单,使用较为方便适合小白使用**

**v2rayN功能更多,但是界面复杂,配置比较繁琐**

{% content-ref url="/pages/-M0BXuKJieJl4-c6SEbC" %}
[Windows-Clash](/info-index/win-clash.md)
{% endcontent-ref %}

{% content-ref url="/pages/-M0BXu6z6br\_UNM4xSCk" %}
[Windows-v2rayN](/info-index/win-v2n.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.fbi.company/info-index/win10_uwp_application.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
