Aquacolor

Aquacolor



命令行使用代理

Gumdrop · 2025-09-01 · 21浏览 · 未分类


set http_proxy=http://127.0.0.1:10808
set https_proxy=https://127.0.0.1:10808
curl https://www.google.com

在v2rayN将sock端口和http端口合并成混合端口之后莫名奇妙发现cmd好像用不了代理了,不过后来发现还是用一样的方法代理,就是不知道频繁失败是什么原因。

netstat -ano | findstr xxx
$env:http_proxy="http://127.0.0.1:10808"
echo $env:http_proxy

在你已经有代理的情况下还需要注意一些情况,如以.jar作为本体的游戏(java游戏),如果其源码请求网络没有指定使用代理,那么它将不会使用你的网络工具设置的代理。

你需要使用命令行显式指定jvm使用代理。

java -jar '-Dhttp.proxyHost=127.0.0.1' '-Dhttp.proxyPort=10808' '-Dhttps.proxyHost=127.0.0.1' '-Dhttps.proxyPort=10808' .\desktop.jar
java -jar -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=10808 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=10808 .\Mindustry.jar


©

comment 评论区

添加新评论

face表情



  • ©2026 bilibili.com

textsms
内容不能为空
昵称不能为空
email
邮件地址格式错误
web
beach_access
验证码不能为空
keyboard发表评论


star_outline 咱快来抢个沙发吧!




©2026 Aquacolor

Theme Romanticism2.2 by Akashi
Powered by Typecho