wsl2-hacks
wsl2-hacks copied to clipboard
Put Windows IP in the hosts
in wsl2hack, add
chmod u+w /etc/hosts && echo ip r | grep default | cut -d' ' -f3 windows >> /etc/hosts
to put windows IP in the /etc/hosts with IP of Windows