wsl-auto-forward

Crates.iowsl-auto-forward
lib.rswsl-auto-forward
version0.2.1
sourcesrc
created_at2022-06-21 12:02:14.260696
updated_at2023-03-28 14:00:44.160061
descriptionA tool that can automatically forward local TCP and UDP requests to WSL2
homepagehttps://github.com/avalon1610/wsl-auto-forward
repositoryhttps://github.com/avalon1610/wsl-auto-forward
max_upload_size
id610185
size31,085
Raven (avalon1610)

documentation

README

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
Commit count: 5

cargo fmt