Goldenfaeron
Goldenfaeron

Reputation: 91

adb cant connect to windows WSA

I am trying to use adb to connect to my Android subsystem in windows (WSA). But when using adb connect 172.23.178.142 (IP is correct)

WSA IP address

This error occurs: Error

Upvotes: 0

Views: 10748

Answers (4)

David Chai
David Chai

Reputation: 11

Check your antivirus software. In my case, the WSA is blocked by AVG and being quarantined.

Upvotes: 0

Benny Code
Benny Code

Reputation: 54935

You can try to use an IPv4 Address starting with "192.168" instead of using the "127.0.0.1" loopback address. Additionally, go to the WSA settings to explore the "Experimental features" and make sure to enable "Local network access".

In general, this is how to connect WSA using the Android Debug Bridge (adb):

  1. Turn on "Windows Subsystem for Android" → "Advanced Settings" → "Developer mode"
  2. Turn on "Windows Subsystem for Android" → "Experimental features" → "Local network access"
  3. Click on "Amazon Appstore" or "Manage developer settings" to start the emulator
  4. Toggle the "Developer mode" setting to see your adb connection URL
  5. Install adb (comes with the Android SDK Platform-Tools)
  6. Find your local IPv4 address using ipconfig in the Windows PowerShell
  7. Try to connect with the adb, Example: adb connect 192.168.178.70:58526

There is a post with screenshots here and a video tutorial showing these steps in detail.

Upvotes: 0

CLIFFORD P Y
CLIFFORD P Y

Reputation: 17404

I faced same issue

Solution

Launch the Files application. See the image below

enter image description here

Connect the adb using command adb connect 127.0.0.1:58526

Upvotes: 0

oculosdanilo
oculosdanilo

Reputation: 1

For connecting with wsa through adb, you will need to open wsa settings (green icon), go to Developer and activate Developer mode. Then you will connect adb with the given ip adress on the same location.

Upvotes: 0

Related Questions