mylamour / blog

Your internal mediocrity is the moment when you lost the faith of being excellent. Just do it.
https://fz.cool
61 stars 14 forks source link

How to connect android devices from WSL2 with adb #92

Open mylamour opened 2 years ago

mylamour commented 2 years ago
  1. Open powershell and run adb server

    .\adb.exe -a -P 5037 nodaemon server

    Screenshot 2022-06-02 205904

  2. Set ADB_SERVER_SOCKET in WSL

    adb -H 172.30.112.1 -P 5037 devices
    export ADB_SERVER_SOCKET=tcp:172.30.112.1:5037
    adb devices

    screenshot 2022-06-02 205928