Skip to content

Commit

Permalink
Updated wsl cheat sheat
Browse files Browse the repository at this point in the history
  • Loading branch information
alanfzf committed Nov 21, 2023
1 parent e3988d9 commit e0ca635
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Windows/wsl.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@
# enable close, minimize and resize WSL
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"
```

```bash
# open ports on host machine
# https://www.nextofwindows.com/allow-server-running-inside-wsl-to-be-accessible-outside-windows-10-host
netsh interface portproxy reset
netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=80 connectaddress=172.31.178.209
netsh interface portproxy add v4tov4 listenport=3306 listenaddress=0.0.0.0 connectport=3306 connectaddress=172.31.178.209
netsh interface portproxy add v4tov4 listenport=22 listenaddress=0.0.0.0 connectport=22 connectaddress=172.31.178.209
```

0 comments on commit e0ca635

Please sign in to comment.