# 如何设置Pia S5 代理

PIA S5 Proxy官网：<https://account.piaproxy.com/register?invitation_code=IXULVD0A>

### 方法一：手动设置socks5代理

1.打开Pia S5客户端，顶部的信息代表含义为：① 你的用户名 ② 本机IP及端口 ③ 剩余IP数量 ④ 代理信息

<figure><img src="/files/R71GYHC4G1GCVrKrm9t8" alt=""><figcaption></figcaption></figure>

2.过滤国家和城市，点击“启动代理”获取目标国家的IP列表。

<figure><img src="/files/tBGYTFXSZdZ9faKHep9n" alt=""><figcaption></figcaption></figure>

3.右键点击一个IP，点击“Forward Port To Proxy”，选择一个端口。

<figure><img src="/files/SWgc95SM7dkDHwTjke5p" alt=""><figcaption></figcaption></figure>

4.点击“PortForwardList”查看详细代理参数。

<figure><img src="/files/8WdZn7KwDDyaeolLziic" alt=""><figcaption></figcaption></figure>

5.打开比特浏览器，选择浏览器窗口，点击“创建窗口”。

<figure><img src="/files/ZjvTqc0BuFM9kINdcOs8" alt=""><figcaption></figcaption></figure>

6.进行“代理设置”，代理类型选择“socks5”，输入"代理主机"和“代理端口”，输入完成后点击“代理检测”，检测成功后，点击“确定”，这样就设置完毕啦！

<figure><img src="/files/KWZVXtrQf0OK8uPrAkbc" alt=""><figcaption></figcaption></figure>

### 方法二：通过API获取代理

1.进入Pia s5，点击API选项卡，选择指定的“国家”、“国家编号”、“城市”、“邮编”，点击启动代理。

<figure><img src="/files/gcD6p0DMoXL1R5ZAR1hd" alt=""><figcaption></figcaption></figure>

2.点击“启动代理”后会获取到一个URL，点击“Copy”按钮复制。

<figure><img src="/files/VaVbA4As3HNrsw1tzWmR" alt=""><figcaption></figcaption></figure>

3.打开比特浏览器，创建窗口，“代理设置”选择“使用代理平台API提取链接提取”，“服务商”选择“Pia S5”，代理协议选择“socks5”，在“提取链接”处粘贴刚才Copy的URL，粘贴完成后点击“测试提取”，会显示获取到的“代理信息”，点击“确定”代理设置成功。

<figure><img src="/files/vjnrrHJRctCNDsUdqC5r" alt=""><figcaption></figcaption></figure>


---

# 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://doc.bitbrowser.cn/help1/dailiip/ru-he-she-zhi-pia-s5-dai-li.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.
