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:
chmod +x /startup.sh
%sudo ALL=NOPASSWD: /startup.shto end of file
sudo /startup.shat end of file
That's all. After first login in wsl after system start wsl.host will point to your windows host