MustardChef/WSABuilds

[Solved] Can WSL2 run adb to connect to WSA?

Closed this issue · 1 comments

I want to use WSL Android-sdk-tools to work on WSA. However, under WSL, only "eth0" from itself is listed, no other vEthernet can be found.

On Windows11 23H2(make sure you complete all updates), supposing you have installed WSL2 and run the distribution, open "WSL Settings--Network" and choose "Mirrored", and then exit and restart your PC. When your WSA is running, press "ip addr show" on WSL to check it, if you see the result like this:
屏幕截图 2024-10-19 103254
"adb start-server" (be patient to wait for few minutes)
"adb connect 127.0.0.1:58526"
Enjoy!