> 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/mobile/shadowrocket.md).

# Shadowrocket

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

{% stepper %}
{% step %}
打开 Shadowrocket，点击右上角 **“+”**。

<figure><img src="https://3289063633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkecT0sgxpp4DntRk239E%2Fuploads%2Fs2vLoOtXLVczUoopnELa%2Fimage.png?alt=media&amp;token=3a801fd7-b0f6-42d1-82f5-d02be1d9a28f" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
在 **“类型”** 中选择代理协议，此处以socks5为例。将IP地址、端口、用户名、密码填写到对应位置。使用白名单认证时，无需填写用户名和密码。

<figure><img src="https://3289063633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkecT0sgxpp4DntRk239E%2Fuploads%2Fccd7ZC6hPDKxgW7QmUj1%2Fimage.png?alt=media&amp;token=9c679f26-c750-4368-be52-93b9f8cbb823" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
点击右上角 **“保存”**，保存代理配置。

<figure><img src="https://3289063633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkecT0sgxpp4DntRk239E%2Fuploads%2FhKP8LM2KAJNsJqCbuzps%2Fimage.png?alt=media&amp;token=c9a823f5-6bac-42c2-9626-30b390287b35" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
在首页选择刚添加的代理，打开顶部连接开关，按照系统提示完成授权。

<figure><img src="https://3289063633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkecT0sgxpp4DntRk239E%2Fuploads%2FGX0XMTbPX7eRGLecJuIe%2Fimage.png?alt=media&amp;token=d688aefc-c88b-43ca-bac7-84fda715f8bd" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
连接成功后，打开 Safari 访问 [ipinfo.io](https://ipinfo.io/what-is-my-ip)，确认显示的出口 IP 与 XSpark 提供的 IP 一致。
{% endstep %}
{% endstepper %}

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