🦊

WSLのIPアドレスを確認する(メモ)

2025/01/13に公開

WSLを開いて以下のコマンドを実行すれば確認可能です。

ip addr | grep inet

結果

    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
    inet 172.26.167.3/20 brd 172.26.175.255 scope global eth0
    inet6 fe80::215:5dff:fedd:761f/64 scope link
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0

Discussion