shayne / go-wsl2-host

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

obtain host ip with "wsl hostname -I" #51

Closed jayagami closed 3 years ago

jayagami commented 3 years ago

I found the wsl2 host IP address can be obtained with

wsl hostname -I

and service can be run with admin is user account really needed?