設定指南
每行字串都包含閘道、端口、用戶名和密碼。你選擇的選項(國家、會話)會寫入用戶名。
字串格式
host:port:user:pass 是匯入清單工具最常用的格式。user:pass@host:port 可在大多數程式庫中作為代理地址使用。
國家
與清單產生器一樣,在用戶名加上國家代碼。不加的話可使用任何國家。
輪換
沒有會話時,每個新連接都可能獲得新IP。設定會話ID和時長後,只要IP保持在線,使用相同會話ID的連接會在該時間內保持同一IP。需要新IP時請使用新的會話ID。
免密碼登入
在「設定 > 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端口,提示時輸入用戶名和密碼。
