Windows Proxy Setup for Clash | Generated by AI

Home 2026.07

Question: How to set Windows system proxy to use your Mihomo/Clash config (mixed-port: 7892)?

Answer:

Your Mihomo config exposes:

port: 7890          # HTTP proxy
socks-port: 7891    # SOCKS5 proxy
mixed-port: 7892    # HTTP + SOCKS combined
allow-lan: true

For Windows system proxy, use the HTTP proxy port or mixed port.

Option 1: Windows GUI

  1. Open:
Settings
→ Network & Internet
→ Proxy
  1. Under Manual proxy setup:

Enable:

Use a proxy server: On

Set:

Address: 127.0.0.1
Port:    7892

Example:

http://127.0.0.1:7892

Save.


Option 2: PowerShell (fast)

Run as normal user:

netsh winhttp set proxy 127.0.0.1:7892

Check:

netsh winhttp show proxy

Reset:

netsh winhttp reset proxy

Option 3: Environment proxy (for CLI tools)

Many developer tools use environment variables:

PowerShell:

$env:HTTP_PROXY="http://127.0.0.1:7892"
$env:HTTPS_PROXY="http://127.0.0.1:7892"

Permanent:

[Environment]::SetEnvironmentVariable(
  "HTTP_PROXY",
  "http://127.0.0.1:7892",
  "User"
)

[Environment]::SetEnvironmentVariable(
  "HTTPS_PROXY",
  "http://127.0.0.1:7892",
  "User"
)

Verify

Open PowerShell:

curl https://www.google.com

or:

curl https://api.ipify.org

You should see the proxy exit IP.


Important: allow-lan

Your config:

allow-lan: true

means other devices can access Mihomo, but for the same Windows machine you only need:

127.0.0.1:7892

No firewall changes needed.


If Mihomo runs on another machine (Mac)

Your prompt shows:

lzwjava@lzw-mac

If Mihomo is running on your Mac and Windows connects to it:

  1. Find Mac IP:
ifconfig en0 | grep inet

Example:

192.168.1.100
  1. Windows proxy:
Address: 192.168.1.100
Port: 7892
  1. Ensure Mac firewall allows port 7892.

Your current:

allow-lan: true

is already correct for this scenario.


Generated by AI. Curating and sharing still takes effort. If you find it useful, feel free to donate. WeChat: @lzwjavaWeChat QR · X: @lzwjava · Say hi 👋

Back Donate