Skip to content

Instantly share code, notes, and snippets.

@doorbash
Created October 15, 2022 14:19
Show Gist options
  • Save doorbash/c500b76151ee912589d1a9ace8654b7f to your computer and use it in GitHub Desktop.
Save doorbash/c500b76151ee912589d1a9ace8654b7f to your computer and use it in GitHub Desktop.

add this line to ~/.profile :

    export HOST_IP=$(ipconfig.exe | grep 'vEthernet (WSL)' -A4 | cut -d":" -f 2 | tail -n1 | sed -e 's/\s*//g')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment