shayne / go-wsl2-host

Automatically update your Windows hosts file with the WSL2 VM IP address
1.65k stars 140 forks source link

WSL2host ip redirects when hosts file is open in vscode #43

Open stevensko opened 3 years ago

stevensko commented 3 years ago

Ran into this issue when I had the hosts file open in vscode (insiders) to check if wsl2host.exe was working. If the hosts file is open in vscode, then the hostname (ubuntu.wsl) redirects the ip to an akamai technologies server that vscode talks to. but it only redirects the wsl2host hostname, not any manually set hostnames. and the ip in the hosts file doesn't change, it shows the correct wsl2 ip.