> For the complete documentation index, see [llms.txt](https://wiki.openv2.icu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.openv2.icu/gao-ji-jin-jie/lan.md).

# 局域网代理共享教程

## 需求场景

当设备无法安装配置软件并且路由器无法设置代理时、懒得折腾软路由等，可使用当前方法进行配置。

需要局域网中有一台个人电脑来配合使用，这里以 macOS 平台下 ClashX 为例来进行说明.

## 一、获取 电脑端IP

{% hint style="info" %}
&#x20;1、在 mac 终端上使用 `ifconfig` 命令获取本地 IP 地址。
{% endhint %}

![](/files/-MQBLDXui5cpiSg9WDv6)

{% hint style="info" %}
2、打开 ClashX 控制台，在「设置」选项卡中打开「允许来自局域网的连接」，并获取 HTTP/SOCKS 代理端口号。
{% endhint %}

![](/files/-MQBLjwu4Ljv4tS3XfK5)

## 二、设置

{% hint style="info" %}
以 Nintendo Switch 为例，「设置」->「互联网」->「互联网设置」，选择对应的 WIFI，选择「更改设置」，

将「代理服务器设置」里的「服务器」和「端口」修改为上一步获得的信息，具体使用 HTTP 和 SOCKS 的端口需要用户自己分辨，一般没有说明的话是 HTTP。然后点击保存即可。
{% endhint %}

![](/files/-MQBLzKdsnPsstLoY7YG)

![](/files/-MQBOFj0Jyj_4augEXw9)

&#x20;
