wsl:: 외부접속시 window to wsl2 port forwarding
wsl2에서 ubuntu port를 외부컴퓨터에서 접근하려면 port가 막혀서 접근이 안된다. 예로, wsl2실행하는 컴퓨터에서 127.0.0.1:8080 (0.0.0.0:8080)로 code-server를 실행하면 정상적으로 작동하지만 외부접속을 하려고 실제 IP 주소로 접근하면 port가 막혀서 접속이 불가하다. wsl2를 실행하는 컴퓨터와 동일한 port를 사용하게끔 하는 명령어, 설정이다. sudo apt install net-tools# Make network.ps1 And Run in powershell as Admin with - .\network.ps1 -./network.ps1# Refer to https://github.com/microsoft/WSL/is..