You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I am unable to get it to work as the windows hosts file is not updated.
No error is produced on my system when running the install script
windowshost.local is successfully added to /etc/hosts but the hostname entered in the script is never added to windows hosts.
Output on my machine:
➜ cd ~;\
➜ curl -s https://raw.githubusercontent.com/hndcrftd/wsl2ip2hosts/master/install.sh > wsl2ip2hosts.install.sh;\
➜ chmod +x wsl2ip2hosts.install.sh;\
➜ sudo PATH="$PATH" ~/wsl2ip2hosts.install.sh
[sudo] password for rai:
Would you like to add your Windows IP to your WSL /etc/hosts? [y/n] (default: y) :y
Enter hostname for Windows (default: windowshost.local) :
Would you like to start httpd web server when WSL starts? [y/n] (default: y) :
For your WSL enter a hostname or multiple, separated by space
:wsl.local
Populating IPs, this will take a few seconds...
Installation completed. The following entries are now in effect:
172.17.80.1 windowshost.local
172.17.94.115 wsl.local
The text was updated successfully, but these errors were encountered:
Thanks @hndcrftd for the great utility.
However, I am unable to get it to work as the windows hosts file is not updated.
No error is produced on my system when running the install script
windowshost.local
is successfully added to/etc/hosts
but the hostname entered in the script is never added to windows hosts.Output on my machine:
The text was updated successfully, but these errors were encountered: