skip to Main Content

I am trying to execute and debug a program that I am developing in Android Studio (version: Koala | 2024.1.1 Patch 1) on my physical mobile (a Samsung Galaxy S23 Ultra) via WiFi.
The paring (be it via QR-code or via pairing code) always ends in "Connecting to device. This takes up to 2 minutes" and after that time invariably fails with "an error occured connecting device. Scan to try again", i.e. I NEVER get a working connection.

I had this working a few months back with the precursor of Koala (Jellyfish). It also hadn’t been very stable back then but typically after 2 or 3 attempts one got this working and once the connection was set up it worked OK. With Koala I have been completely out of luck so far. This is SO frustrating! Any ideas anyone what one could check and/or try to get this going?

I already rebooted my Laptop (MS Surface Pro 8) – didn’t make a difference.

2

Answers


  1. You can try the following for a Samsung phone

    1. You can resolve the issue from within Wi-Fi settings by disabling the Randomized MAC Address feature under Privacy. Using the device’s actual MAC address fixes the issue

    2. You can also manually assign IP addresses to your device from your router, and disable DHCP

    There are other options like using the command line to pair as well which can be found here

    Login or Signup to reply.
  2. use command line(1):

    PS D:path> adb pair 192.168.3.3:33333
    Enter pairing code: 333333
    error: protocol fault (couldn't read status message): No error
    

    success(2):

    PS D:path> adb pair 192.168.3.3:33333 333333
    Successfully paired to 192.168.3.3:33333 [guid=adb-WADWADSWDSDAWDSDWD]
    

    In my pc ,after method 2 is successful, it seems that method 1 can also be used.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search