> For the complete documentation index, see [llms.txt](https://doc.xspark.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.xspark.cn/integration/tools/desktop/v2rayn.md).

# v2rayN

{% hint style="success" icon="circle-info" %}
开始前，请参考 “[获取IP信息](/getting-started/quick-start/get-ip-info.md)” 教程获取代理信息。若使用白名单认证，请参考 “[设置白名单](/getting-started/quick-start/whitelist-setup.md)” 教程将当前设备的公网 IP添加到白名单列表中。
{% endhint %}

{% stepper %}
{% step %}
点击配置项，根据需求选择\[添加SOCKS]或\[添加http]，此处以SOCKS为例

<figure><img src="https://3289063633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkecT0sgxpp4DntRk239E%2Fuploads%2FT2oJJugYo08qycpw1FdH%2Fimage.png?alt=media&amp;token=a963cdd7-de18-4906-8fe7-61dd6f90fdad" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
输入别名（自定义），并将IP地址、端口、用户名、密码填入对应位置，点击“保存”。使用白名单认证时，无需填写账号和密码。

<figure><img src="https://3289063633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkecT0sgxpp4DntRk239E%2Fuploads%2FAPeMNSxuIDsm8KaMqg9Y%2Fimage.png?alt=media&amp;token=ddac3cf3-bed8-4249-b146-3ee382888027" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
在列表中右键点击刚添加的配置，点击 **“设为活动”→“测试延迟”，**&#x663E;示延迟数据代表连接正常。

<figure><img src="https://3289063633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkecT0sgxpp4DntRk239E%2Fuploads%2Fzjkp0AipxTXQtAsTtpa4%2Fimage.png?alt=media&amp;token=438734b1-8b21-4d5a-9b12-c06783d433d5" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
在底部系统代理设置中选择 “自动配置系统代理”，让使用系统代理的浏览器通过 v2rayN 连接。

<figure><img src="https://3289063633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkecT0sgxpp4DntRk239E%2Fuploads%2Fknve2cCW711dxZpSJCPu%2Fimage.png?alt=media&amp;token=e38c12a8-99b3-4822-afcb-b86b4b7d031f" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
打开浏览器，访问 [ipinfo.io](https://ipinfo.io/what-is-my-ip)，确认显示的出口 IP 与 XSpark 提供的 IP 一致。

不再使用时，在 **“系统代理”** 中选择 **“清除系统代理”**，恢复正常连接。
{% endstep %}
{% endstepper %}

至此，v2rayN 代理配置完成，您可以开始使用了！
