Skip to content

Instantly share code, notes, and snippets.

@dreamlu
Last active March 31, 2025 21:08
Show Gist options
  • Save dreamlu/cf7cbc0b8329ac145fa44342d6a1c01d to your computer and use it in GitHub Desktop.
Save dreamlu/cf7cbc0b8329ac145fa44342d6a1c01d to your computer and use it in GitHub Desktop.
windows终端翻墙,简易方式
环境:shadowsocks、windows
本地ss端口设置(这里1080)
cmd命令行:(不用socks5)(临时设置)(也可放置环境变量)
set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080
ps:一定要用cmd命令行,千万别用powershell !!!
简易测试命令:curl https://www.google.com(别用ping)
@imanyl
Copy link

imanyl commented Dec 18, 2024

PowerShell 的:

$env:http_proxy="http://127.0.0.1:1080"
$env:https_proxy="http://127.0.0.1:1080"

亲测可用

这个的确可用,不过要使用正确的本地端口,如果使用v2rayN的话,可以在app界面底部看到socks5和http端口

好用,替换成软件底部显示的http端口即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment