Skip to content

Instantly share code, notes, and snippets.

@palamar
Last active August 26, 2021 08:39
Show Gist options
  • Select an option

  • Save palamar/0a7aa132467a1a8fda71ce872bf2a110 to your computer and use it in GitHub Desktop.

Select an option

Save palamar/0a7aa132467a1a8fda71ce872bf2a110 to your computer and use it in GitHub Desktop.
$WSLHOSTNAME = wsl hostname -I
netsh interface portproxy delete v4tov4 listenport=9000 listenaddress=0.0.0.0
netsh interface portproxy add v4tov4 listenport=9000 listenaddress=0.0.0.0 connectport=9003 connectaddress=$WSLHOSTNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment