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