Skip to content

Instantly share code, notes, and snippets.

@AIT-RAMI
Created January 10, 2021 12:06
Show Gist options
  • Save AIT-RAMI/f91f0e67a3d598f900ec92b387b4029d to your computer and use it in GitHub Desktop.
Save AIT-RAMI/f91f0e67a3d598f900ec92b387b4029d to your computer and use it in GitHub Desktop.
wsl internal ip
#!/bin/bash
ip addr | grep -E "\b*inet.*global" | sed -E "s/inet(.*)\/.*/\1/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment