This small gist will add automaticaly wsl.host to hosts file and you will be able to communicate with your windows system, using wsl.host
as address.
After creating your wsl do next:
- Place
startup.sh
at/startup.sh
and runchmod +x /startup.sh
- Run
visudo
- Add
%sudo ALL=NOPASSWD: /startup.sh
to end of file - Add
sudo /startup.sh
at end of file/etc/profile
That's all. After first login in wsl after system start wsl.host will point to your windows host