Skip to content

Instantly share code, notes, and snippets.

@fahimalizain
Last active November 22, 2023 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fahimalizain/61975b75f5871572ae087129178ae4f4 to your computer and use it in GitHub Desktop.
Save fahimalizain/61975b75f5871572ae087129178ae4f4 to your computer and use it in GitHub Desktop.
WSL Host IP
#!/bin/bash
# Obtains the Windows Host IP Address
# This can be used for accessing resources on the host device (eg. adb to WSA)
export WSL_HOST_IP="$(tail -1 /etc/resolv.conf | cut -d' ' -f2)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment