rendiix / termux-adb-fastboot

android adb-fastboot tools for termux
Apache License 2.0
549 stars 82 forks source link

Cannot connect to device #7

Closed MelleNi closed 1 year ago

MelleNi commented 2 years ago

After installing, when I try to start server and find connected devices I get the following: Screenshot_20211217-163348_Termux

rendiix commented 2 years ago

@MelleNi Use wireless debugging to connect from the device itself

MelleNi commented 2 years ago

@rendiix I tried that, but the only way I could do it in the end was by doing a fresh install (after which it wouldn't display any devices at all) and then the following:

Connecting to a computer, and then running: adb tcpip 5555 adb kill-server on the computer, disconnecting the cable and running on the phone: adb connect localhost:5555

rendiix commented 2 years ago

The device must be connected to the local network via wifi. Then do adb pairing.

Screenshot_20211218-011707954

MelleNi commented 2 years ago

It says pairing is unsuccessful, and that I have to connect to the same network, even though it is of course connected to the same network.

nathaneltitane commented 2 years ago

doesn't work, followed instructions and pairing guide to a Tee...

Screenshot_20220106-134339_Termux

MelleNi commented 2 years ago

doesn't work, followed instructions and pairing guide to a Tee...

Did you try do the steps I did? Doing that it worked for me, after that you don't need a computer anymore to set it up

nathaneltitane commented 2 years ago

doesn't work, followed instructions and pairing guide to a Tee...

Did you try do the steps I did? Doing that it worked for me, after that you don't need a computer anymore to set it up

yes actually.. unless i gorgot something?

can you write a step by step to be sure?, i'll try once more?

MelleNi commented 2 years ago
  1. Connect your device to a computer
  2. On the computer you make sure the device shows up with adb devices
  3. On the computer you do adb tcpip 5555 and then adb kill-server
  4. Disconnect the phone from the computer
  5. On the phone you do adb connect localhost:5555
  6. It should now connect

I think that's all the steps, but it's from memory, so I might be wrong.

It's similar to this wi-fi guide: https://www.guru99.com/adb-connect.html

heham commented 2 years ago
1. Connect your device to a computer

2. On the computer you make sure the device shows up with `adb devices`

3. On the computer you do `adb tcpip 5555` and then `adb kill-server`

4. Disconnect the phone from the computer

5. On the phone you do `adb connect localhost:5555`

6. It should now connect

I think that's all the steps, but it's from memory, so I might be wrong.

It's similar to this wi-fi guide: https://www.guru99.com/adb-connect.html

Thank you! It worked!