Last active
November 22, 2023 05:29
-
-
Save fahimalizain/61975b75f5871572ae087129178ae4f4 to your computer and use it in GitHub Desktop.
WSL Host IP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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