Wednesday, 11 December 2024

WSL networking

WSL access Server In Host (Window)

Access Ubuntu run:

usser@DESKTOP-VDO4U9R:~$ ip route show | grep -i default | awk '{ print $3}'
172.22.224.1 

Then in wsl can acesss host through above IP

Host (Window) acess WSL

- get Ip of WSL (Ubuntu) 

+ Access Ubuntu run: hostname -I (to get IP of WSL)

+ then access by IP

Reference

- https://learn.microsoft.com/en-us/windows/wsl/networking#accessing-windows-networking-apps-from-linux-host-ip

No comments:

Post a Comment

Publish npm package

  Để publish   pav-kit  lên NPM, bạn hãy làm theo các bước dưới đây. Tôi đã tạo thêm file  index.js  để đảm bảo gói tin hợp lệ. Bước 1: Tạo ...