标签 局域网访问 下的文章

  1. wsl2 中开启服务 -h 0.0.0.0
  2. wsl2 可以通过 10.xx 网络访问, 也可以通过 127.xx 访问
  3. windows 宿主机可以通过 127.xx 访问, 但是无法通过 10.xx 访问
  4. 如果这个服务在 windows 上开启, 一切正常.
  5. 和 clash 有关系吗? 不过我试过, 即使 clash 退了也白扯.
[wsl2]
memory=10GB 
processors=4
swap=16GB
pageReporting=true
localhostforwarding=true
networkingMode=mirrored
nestedVirtualization=false
debugConsole=false
dnsTunneling=true
firewall=true
autoProxy=true #强制 WSL 使用 Windows 的 HTTP 代理信息

[boot]
systemd=true

[experimental]
autoMemoryReclaim=gradual # 检测到空闲 CPU 使用率后自动释放缓存内存。设置 gradual 为缓慢释放,设置 dropcache 为立即释放缓存内存。
sparseVhd=true