#tcp-udp #automatic #port #forward #forwarding #local #requests

nightly app wsl-auto-forward

A tool that can automatically forward local TCP and UDP requests to WSL2

2 unstable releases

0.2.1 Mar 28, 2023
0.1.0 Jun 21, 2022

#21 in #forwarding

MIT license

14KB
283 lines

wsl-auto-forward

wsl-auto-forward - A tool that can automatically forward local TCP requests to WSL2

Why another tool

  • Accessing WSL2 via localhost occasionally fails
  • Windows portproxy: need manually setup forwarding port

Installation

use cargo (need nightly)

cargo +nightly install wsl-auto-forward

or download from Release

Features

  • Auto detect WSL2 listening port changes, and apply forwarding
    • only detect ports bound to 0.0.0.0
    • detecting interval can be set
  • Fixed port forwarding

Dependencies

~9–20MB
~242K SLoC