1.浏览器配置代理
以ie的配置为例
打开https://whoer.net查看ip
2.更换ip
点击如下按钮,就完成了ip更换
也可通过API, 发送一个HTTP POST请求,非GET请求, 更换IP
例子: 用shell执行如下命令更换ip,空的body。当然,你也可以用其它语言(java,php,python等)实现
# 本地
curl -X POST "http://127.0.0.1:22999/api/refresh_sessions/24000" -H "accept: application/json# Describe your paths here"
# 内网
curl -X POST "http://192.168.0.*:22999/api/refresh_sessions/24000" -H "accept: application/json# Describe your paths here"
# 公网
curl -X POST "http://公网IP:22999/api/refresh_sessions/24000" -H "accept: application/json# Describe your paths here"
3.批量创建端口
通过新增代理,可以创建24000,24001,24002等端口,可以不同的端口是不同的国家,城市
也可以自动批量创建端口