find ip address on wsl code example Example: how to check my ip address on wsl ip addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}'