Skip to content

Instantly share code, notes, and snippets.

@d4kine
Created November 13, 2023 15:34
Show Gist options
  • Save d4kine/024fd887a4fe13ff087c10788700fb72 to your computer and use it in GitHub Desktop.
Save d4kine/024fd887a4fe13ff087c10788700fb72 to your computer and use it in GitHub Desktop.
WSL2 - print IP of Windows host
#!/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