Reputation: 81
I am trying to sideload a build to my phone, Alcatel Android 7. I have been able to sideload to it before but it's stopped working when I switched to a new network. I am running it from MacOS terminal.
Courtneys-MacBook-Pro-3:~ courtneytaniguchi$ adb connect 10.0.0.216
failed to connect to '10.0.0.216:5555': Connection refused
Courtneys-MacBook-Pro-3:~ courtneytaniguchi$
This phone is developer enabled, I have allowed installation of apps from unknown sources turned on in security, and USB debugging is on too. Yes, I am on the same network.
Upvotes: 8
Views: 15088
Reputation: 14328
I had a similar problem failed to connect to '192.168.31.84:5555': Connection refused
, final worked by:
adb kill-server
adb start-server
adb devices
can see your device idadb tcpip 5555
adb -s device_serial_id tcpip 5555
adb connect your_android_phone_ip:5555
Full log for your refer:
adb kill-server
adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully
adb devices
List of devices attached
2e2a0cb1 device
orga4pmzee4ts47t device
adb tcpip 5555
error: more than one device/emulator
adb -s 2e2a0cb1 tcpip 5555
restarting in TCP mode port: 5555
adb connect 192.168.31.84:5555
connected to 192.168.31.84:5555
Upvotes: 13
Reputation:
I had the same error. Solved by following extra steps mentioned here which is connecting the device via USB and then executing the following command after finding device id :
./adb -s <device id> tcpip 5555
Upvotes: 3
Reputation: 1
Same happened with me. Always rejected, I have two devices used to connect over wifi for some Android Project, im always rejected to 5555 on my Huawei Device. But there is one workaround i know that works.
➜ ~ adb connect 192.168.8.108:5555
failed to connect to '192.168.8.108:5555': Connection refused
➜ ~ adb connect 192.168.8.108:7612
connected to 192.168.8.108:7612
Try port 7612
Thanks!
Upvotes: 0
Reputation: 1698
If you are stuck in the sideloading process, you can always e-mail the .apk file to yourself at an e-mail address which is configured on the phone, download the attachment, then go to 'downloads' app, and click on the .apk file, it should ask if you are sure you want to install the app, just say yes. You have to make sure that you have already selected 'Allow' in the Unknown Sources section in Settings/Development.
Upvotes: 0
Reputation: 266
Based on the commands you are entering it seems you are trying to do adb over wifi.
The following may help:
adb tcpip 5555
Upvotes: 3