小编Mah*_*ian的帖子

如何从 wsl2 访问 Windows 本地主机?

我的 Windows 11 上安装了 wsl2(ubuntu)。

我已经在 Windows 本地主机上设置了一个 gdb 侦听器服务器,并希望从 wsl2 访问它。但我的 Windows 机器和 wsl 虚拟机似乎使用不同的网络适配器。

>ipconfig

Windows IP Configuration


Ethernet adapter vEthernet (Default Switch):

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::1114:bb:d0ad:93f8%18
   IPv4 Address. . . . . . . . . . . : 172.29.192.1
   Subnet Mask . . . . . . . . . . . : 255.255.240.0
   Default Gateway . . . . . . . . . …
Run Code Online (Sandbox Code Playgroud)

networking tcp gdb windows-subsystem-for-linux wsl2

37
推荐指数
1
解决办法
8万
查看次数

标签 统计

gdb ×1

networking ×1

tcp ×1

windows-subsystem-for-linux ×1

wsl2 ×1