shayne / go-wsl2-host

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

Add the Windows host IP to the hosts file #39

Closed nicolas-girod closed 3 years ago

nicolas-girod commented 4 years ago

e.g. xdebug.remote_host=.wsl

Feature request #38

Tibalt commented 3 years ago

i haven't found anything referrring to windows host in /etc/hosts after I updated to the latest commit.

This is my /etc/hosts:

image

by the way, if you want to access windows host in wsl, just use

windows-host-name.mshome.net, for example,

image