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