Page cover image

WSL 2 Port Forwarding

  • System
  • Env
  • 1 min

WSL 2 Port Forwarding content

Created
Description
Last Edited
Tags
System
Env

Code

sudo netsh interface portproxy set v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=$(wsl hostname -I)

Use Case

Source