#!/usr/bin/env bash set -euo pipefail WSL_IP="$(hostname -I | awk '{print $1}')" WSL_HOST_IP="$(awk '/nameserver/ {print $2; exit}' /etc/resolv.conf)" WINDOWS_IPS="$( powershell.exe -NoProfile -Command "(Get-NetIPAddress -AddressFamily IPv4 | Where-Object { \$_.IPAddress -notlike '127.*' -and \$_.IPAddress -notlike '169.254*' -and \$_.InterfaceAlias -notlike '*WSL*' } | Select-Object -ExpandProperty IPAddress) -join ','" \ 2>/dev/null | tr -d '\r' )" cat <