设置指南
每一行都包含网关、端口、用户名和密码。您选择的选项(国家、会话)会写入用户名中。
代理行格式
host:port:user:pass 是导入列表的工具最常用的格式。user:pass@host:port 可在大多数库中作为代理地址使用。
国家
像列表生成器那样,在用户名中加入国家代码。不加则可能使用任意国家。
轮换
不使用会话时,每个新连接都可能获得新的 IP。使用会话 ID 和时长时,在 IP 保持在线期间,相同会话 ID 的连接会在该时长内保持同一 IP。使用新的会话 ID 即可获得新的 IP。
无密码登录
在“设置 > 允许的 IP 地址”中添加您服务器的公网 IPv4 地址。来自该地址的连接只需用户名选项即可使用网关。
流量
流量是通过代理的数据量,以代理网络统计为准。您可以在“用量”中查看每日用量。
示例
示例值。登录后,这里会显示您自己的用户名、密码和网关。
curl
curl -x http: //wgp- yourname- country- de- session- k3m9p2qa- time- 10: yourpassword@gate.wingproxy.example: 8000 https: //api.ipify.org
Python (requests)
import requests proxy = "http://wgp- yourname- country- de- session- k3m9p2qa- time- 10: yourpassword@gate.wingproxy.example: 8000" r = requests.get("https: //api.ipify.org", proxies={"http": proxy, "https": proxy}, timeout=30) print(r.text)
Node.js (undici)
import { ProxyAgent, fetch } from "undici"; const agent = new ProxyAgent("http://wgp- yourname- country- de- session- k3m9p2qa- time- 10: yourpassword@gate.wingproxy.example: 8000"); const r = await fetch("https: //api.ipify.org", { dispatcher: agent }); console.log(await r.text());
SOCKS5
curl -x socks5h: //wgp- yourname- country- de- session- k3m9p2qa- time- 10: yourpassword@gate.wingproxy.example: 9000 https: //api.ipify.org
浏览器
在浏览器或代理扩展中,将 HTTP 代理设置为网关和 HTTP 端口,出现提示时输入用户名和密码。