🐸 端口转发

# 端口转发 PS C:\Users\hdec> netsh interface portproxy add v4tov4 listenport=3306 connectaddress=172.21.255.213 connectport=3306 listenaddress=0.0.0.0 protocol=tcp PS C:\Users\hdec> netsh interface portproxy show all 侦听 ipv4: 连接到 ipv4: 地址 端口 地址 端口 --------------- ---------- --------------- ---------- 0.0.0.0 3306 172.21.255.213 3306 PS C:\Users\hdec> netsh interface portproxy delete v4tov4 listenport=3306 listenaddress=0.0.0.0 PS C:\Users\hdec> netsh interface portproxy show all 172.21.255.213是WSL的地址 `https://zhuanlan.zhihu.com/p/425312804`