Created
November 13, 2023 15:34
-
-
Save d4kine/024fd887a4fe13ff087c10788700fb72 to your computer and use it in GitHub Desktop.
WSL2 - print IP of Windows host
This file contains hidden or 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/sh | |
cat /etc/resolv.conf | grep nameserver | cut -d' ' -f2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment