adb device offline with ADB wireless
For some reasons, my phone does not work anymore with cable.
I saw on the Internet that it is possible to connect adb to the via Wifi, however I tried it and I get this:
adb devices
List of devices attached
192.168.1.2:5555 offline
I search this on Google and it seems that it is related to Android 4.2.2.
And indeed, my device is running Android 4.2.2.
I didn't find any answers on Google for my problem since it is always with a cable, mine is on Wifi...
Any idea how to solve this?
android adb wireless
add a comment |
For some reasons, my phone does not work anymore with cable.
I saw on the Internet that it is possible to connect adb to the via Wifi, however I tried it and I get this:
adb devices
List of devices attached
192.168.1.2:5555 offline
I search this on Google and it seems that it is related to Android 4.2.2.
And indeed, my device is running Android 4.2.2.
I didn't find any answers on Google for my problem since it is always with a cable, mine is on Wifi...
Any idea how to solve this?
android adb wireless
add a comment |
For some reasons, my phone does not work anymore with cable.
I saw on the Internet that it is possible to connect adb to the via Wifi, however I tried it and I get this:
adb devices
List of devices attached
192.168.1.2:5555 offline
I search this on Google and it seems that it is related to Android 4.2.2.
And indeed, my device is running Android 4.2.2.
I didn't find any answers on Google for my problem since it is always with a cable, mine is on Wifi...
Any idea how to solve this?
android adb wireless
For some reasons, my phone does not work anymore with cable.
I saw on the Internet that it is possible to connect adb to the via Wifi, however I tried it and I get this:
adb devices
List of devices attached
192.168.1.2:5555 offline
I search this on Google and it seems that it is related to Android 4.2.2.
And indeed, my device is running Android 4.2.2.
I didn't find any answers on Google for my problem since it is always with a cable, mine is on Wifi...
Any idea how to solve this?
android adb wireless
android adb wireless
asked Jul 13 '13 at 3:27
lost17lost17
4422726
4422726
add a comment |
add a comment |
16 Answers
16
active
oldest
votes
For me the complete steps that worked were :
Settings -> Developer options -> Revoke USB debugging authorizations (clear the list of authorized PCs).
Set USB Debugging OFF.
In Terminal write : adb kill-server
Then : adb start-server
Then : adb connect xx.xx.xx.xx:5555 (the devices ip), it should say unable to connect.
Now turn ON USB debugging again and type the adb connect xx.xx.xx.xx:5555 again.
It should now ask for authorization and you are back online without
needing to connect cable to USB, only wifi used.
2
The key for me was to turn off usb debugging, then turn it back on. This seems necessary if switching between computers
– Nick
Jan 28 '17 at 22:46
add a comment |
run adb kill-server
, then try to connect wirelessly again. It worked for me.
thanks!! it help for me to trigger the message on the phone "Allow USB debugging?" that was in "offline" mode in adb devices, and in Android-Studio
– ofir_aghai
Dec 31 '15 at 17:49
Thanks, that works for me as well :)
– Adnan
Jan 25 '16 at 21:19
add a comment |
Disconnect adb over wifi, connect your phone with a USB-cable to your pc. It will ask you on your phone is you want to allow the connection. Tick always allow. You will only get this when you connect with USB and have to do this only once, you can use over wifi afterwards.
Don't get the pop-up? Try the answers on google over a cable, since you need to do this first.
I can't do that... The reason I want to connect over wifi is because my phone USB plug is broken down, it cannot be used anymore.
– lost17
Jul 24 '13 at 19:15
That was the only solution I found to trigger the pop-up over wifi for me unfortunately
– P1nGu1n
Jul 28 '13 at 10:40
this is the answer!! it works for me <3
– vNext
Nov 15 '13 at 2:38
thanks buddy... works great..
– Kuluval
Jul 8 '14 at 18:27
add a comment |
I could not find exact solution for this problem too.
Best way worked for me was disconnecting device from wifi, then try to connect while device is not connected to Wifi like:
adb connect 192.168.55.3:5555
this causes adb waiting for connection. immediately connect device to wifi and adb will detect device and connect again.
hope this helps.
add a comment |
It seems you want authenticate adb over wifi.If you had your device rooted,you can try this way.
Copy ~/.android/adb_key.pub to your android device,and rename it to adb_keys
Move it to your /data/misc/adb/
Reboot your android,then reconnect over wifi.
if you have root access, you need no reboot, just do: adb shell su 0 setprop ctl.restart adbd
– diyism
Mar 21 '17 at 5:04
With this I can allow adb connect to VirtualBox android-x86 CM13. Usual connect do not show any prompt on android device.
– Enyby
Jul 18 '17 at 23:29
add a comment |
For the first time in debug mode, you need to Authorize your phone with the PC, and that requires the USB cable. After that you can use Debug over WIFI.
If you want to force your phone to show the Authorization message box, simply delete the below file.
/data/misc/adb/adb_key
add a comment |
- In android studio go to Preferences->Plugins
- Download and install this plugin
ADB WIFI Connect
, restart Android Studio - Connect phone via USB
- In android terminal use command:
adb devices
you should get visible device connected via USB:
List of devices attached
988a57334e57365058 device
- Click on plugin icon in android studio AndroidWiFiADB
- If phone get connected properly via WiFI, you see in event log:
12:41 Android WiFi ADB: Device 'ModelOfYourPhone' connected.
- In android terminal use command:
adb devices
use should get
List of devices attached
988a57334e57365058 device
192.168.60.101:5555 device
- Disconnect USB cable and re-check again
adb devices
, should remain only device connected via wifi:
List of devices attached
192.168.60.101:5555 device
For android studio 3.2.1, UI of "Plugins" is moved to "Files -> Settings -> Plugins"
– Owen Chen
Nov 19 '18 at 9:47
add a comment |
Try disconnecting your device with:
abd disconnect <IP/TCP>:<port>
Then restart the WiFi connection of your device, and reconnect your device with:
abd connect <IP/TCP>:<port>
That may fix it; it worked for me.
add a comment |
My solution steps:
- Turn Off WiFi and Turn it back On again.
- Settings -> Developer options -> Revoke USB debugging authorizations.
- Settings -> Developer options -> Turn Off ADB over network and turn it back On again.
- adb kill-server
- adb start-server
- adb connect xx.xx.xx.xx:5555
Note: Step 3 was the key for me. don't forget it.
add a comment |
Note that wireless adb
connectivity in Android 6.0.0 is broken. Updating to 6.0.1 fixes the issue.
https://stackoverflow.com/a/34530543/1123355
add a comment |
In Windows, if you are using system-wide proxy software like Proxifier, you need to add adb.exe
to the ingore list or direct-mode list. In my case, using Proxifier will make adb
able to connect to any IP address even when the phone is not connected to the WiFi, and this leads to device offline.
add a comment |
I know its late to answer but I believe this is the exact answer:
go to WIFI setting on your device and "set a new IP" in your network IP range an reconnect.
add a comment |
Conflicting ADB connections can cause this issue as well:
Windows Host with Docker to Hyper-V Android x86 emulator
I didn't see this answer here yet so for those attempting something similar, the issue I had was that the local Windows Host ADB process had already acquired the adb connection during start up (adb server start).
By simply running: adb disconnect <Device/Android x86 Hyper-V ip>:5555
on host machine
Running adb connect <Device/Android x86 Hyper-V ip>:5555
on the Docker container was able to successfully acquire the remote device (aka Android x86 Hyper-V)
IMPORTANT!!! Until you disconnect Docker (or whatever), your host machine (or any others) will not be able to connect, apparently only one ADB connection at a time is allowed.
I didn't need to do anything else listed above. Hope this helps others.
add a comment |
Just turn off your Proxifier or something else like this.
Socks5 works fine
1
WHY THE BIG LETTERS??
– stybl
Aug 15 '17 at 11:00
add a comment |
I have this problem just now. Note that my case is special, the usb has been disabled for security concerns. Reboot not working. This is not ip problem since ping
is working and nmap shows 5555 port is open. Also since I will not able to connect if port is wrong, so nothing to do with port.
There are 3 reasons:
Because another pc in the local network already connected, so the other guy have to
adb disconnect
first, then I can doadb disconnect
andadb connect <ip>
, since only one person can connect at the same time.A hotspot ssid name might consists of multiple bssids in (especially you're in office) local network, so you need to ensure your pc try all the hotspot bssids which match the android connected hotspot bssid. Note that I noticed it's not always the case (Now I tried different bssids still success), but it did solved before.
Ensure the port 5555 is open correctly. Even though there are many ways, but you can download this app to open port 5555.
add a comment |
For me, the important part turned out to be the following line adb tcpip 5555
together with using the port in the IP of my phone like so: adb connect 192.168.1.87:5555
(only using one of them, did not work, i.e: writing the second alone didn't work, writing the first and then excluding the port in the IP also didn't work). The adb tcpip 5555
line is not mentioned anywhere here. So, for me, the PORT needed to be both manually set and used in the connect line!
These are the events of my command line in Windows PowerShell Admin to demonstrate (Wifi on and debug mode on and confirmed permission when the popup came):
notice that the connection first failed, then it said it was connected which is weird behavior to begin with (no matter what, it always failed once and "succeeded" once), and in both instances, the device showed as offline. The disconnect commands also confirm that its 110% offline
PS C:WINDOWSsystem32> adb kill-server
PS C:WINDOWSsystem32> adb start-server
error: protocol fault (couldn't read status): Connection reset by peer
PS C:WINDOWSsystem32> adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
failed to connect to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 offline
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
already connected to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 offline
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb tcpip 5555
restarting in TCP mode port: 5555
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
connected to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 device
As soon as I added the adb tcpip 5555
command and it restarted in TCP mode port: 5555
the adb connect 192.168.1.87:5555
command worked!
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f17626691%2fadb-device-offline-with-adb-wireless%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
16 Answers
16
active
oldest
votes
16 Answers
16
active
oldest
votes
active
oldest
votes
active
oldest
votes
For me the complete steps that worked were :
Settings -> Developer options -> Revoke USB debugging authorizations (clear the list of authorized PCs).
Set USB Debugging OFF.
In Terminal write : adb kill-server
Then : adb start-server
Then : adb connect xx.xx.xx.xx:5555 (the devices ip), it should say unable to connect.
Now turn ON USB debugging again and type the adb connect xx.xx.xx.xx:5555 again.
It should now ask for authorization and you are back online without
needing to connect cable to USB, only wifi used.
2
The key for me was to turn off usb debugging, then turn it back on. This seems necessary if switching between computers
– Nick
Jan 28 '17 at 22:46
add a comment |
For me the complete steps that worked were :
Settings -> Developer options -> Revoke USB debugging authorizations (clear the list of authorized PCs).
Set USB Debugging OFF.
In Terminal write : adb kill-server
Then : adb start-server
Then : adb connect xx.xx.xx.xx:5555 (the devices ip), it should say unable to connect.
Now turn ON USB debugging again and type the adb connect xx.xx.xx.xx:5555 again.
It should now ask for authorization and you are back online without
needing to connect cable to USB, only wifi used.
2
The key for me was to turn off usb debugging, then turn it back on. This seems necessary if switching between computers
– Nick
Jan 28 '17 at 22:46
add a comment |
For me the complete steps that worked were :
Settings -> Developer options -> Revoke USB debugging authorizations (clear the list of authorized PCs).
Set USB Debugging OFF.
In Terminal write : adb kill-server
Then : adb start-server
Then : adb connect xx.xx.xx.xx:5555 (the devices ip), it should say unable to connect.
Now turn ON USB debugging again and type the adb connect xx.xx.xx.xx:5555 again.
It should now ask for authorization and you are back online without
needing to connect cable to USB, only wifi used.
For me the complete steps that worked were :
Settings -> Developer options -> Revoke USB debugging authorizations (clear the list of authorized PCs).
Set USB Debugging OFF.
In Terminal write : adb kill-server
Then : adb start-server
Then : adb connect xx.xx.xx.xx:5555 (the devices ip), it should say unable to connect.
Now turn ON USB debugging again and type the adb connect xx.xx.xx.xx:5555 again.
It should now ask for authorization and you are back online without
needing to connect cable to USB, only wifi used.
answered Mar 18 '16 at 9:40
GeryGery
22026
22026
2
The key for me was to turn off usb debugging, then turn it back on. This seems necessary if switching between computers
– Nick
Jan 28 '17 at 22:46
add a comment |
2
The key for me was to turn off usb debugging, then turn it back on. This seems necessary if switching between computers
– Nick
Jan 28 '17 at 22:46
2
2
The key for me was to turn off usb debugging, then turn it back on. This seems necessary if switching between computers
– Nick
Jan 28 '17 at 22:46
The key for me was to turn off usb debugging, then turn it back on. This seems necessary if switching between computers
– Nick
Jan 28 '17 at 22:46
add a comment |
run adb kill-server
, then try to connect wirelessly again. It worked for me.
thanks!! it help for me to trigger the message on the phone "Allow USB debugging?" that was in "offline" mode in adb devices, and in Android-Studio
– ofir_aghai
Dec 31 '15 at 17:49
Thanks, that works for me as well :)
– Adnan
Jan 25 '16 at 21:19
add a comment |
run adb kill-server
, then try to connect wirelessly again. It worked for me.
thanks!! it help for me to trigger the message on the phone "Allow USB debugging?" that was in "offline" mode in adb devices, and in Android-Studio
– ofir_aghai
Dec 31 '15 at 17:49
Thanks, that works for me as well :)
– Adnan
Jan 25 '16 at 21:19
add a comment |
run adb kill-server
, then try to connect wirelessly again. It worked for me.
run adb kill-server
, then try to connect wirelessly again. It worked for me.
answered Aug 5 '15 at 16:12
vitalyvitaly
203146
203146
thanks!! it help for me to trigger the message on the phone "Allow USB debugging?" that was in "offline" mode in adb devices, and in Android-Studio
– ofir_aghai
Dec 31 '15 at 17:49
Thanks, that works for me as well :)
– Adnan
Jan 25 '16 at 21:19
add a comment |
thanks!! it help for me to trigger the message on the phone "Allow USB debugging?" that was in "offline" mode in adb devices, and in Android-Studio
– ofir_aghai
Dec 31 '15 at 17:49
Thanks, that works for me as well :)
– Adnan
Jan 25 '16 at 21:19
thanks!! it help for me to trigger the message on the phone "Allow USB debugging?" that was in "offline" mode in adb devices, and in Android-Studio
– ofir_aghai
Dec 31 '15 at 17:49
thanks!! it help for me to trigger the message on the phone "Allow USB debugging?" that was in "offline" mode in adb devices, and in Android-Studio
– ofir_aghai
Dec 31 '15 at 17:49
Thanks, that works for me as well :)
– Adnan
Jan 25 '16 at 21:19
Thanks, that works for me as well :)
– Adnan
Jan 25 '16 at 21:19
add a comment |
Disconnect adb over wifi, connect your phone with a USB-cable to your pc. It will ask you on your phone is you want to allow the connection. Tick always allow. You will only get this when you connect with USB and have to do this only once, you can use over wifi afterwards.
Don't get the pop-up? Try the answers on google over a cable, since you need to do this first.
I can't do that... The reason I want to connect over wifi is because my phone USB plug is broken down, it cannot be used anymore.
– lost17
Jul 24 '13 at 19:15
That was the only solution I found to trigger the pop-up over wifi for me unfortunately
– P1nGu1n
Jul 28 '13 at 10:40
this is the answer!! it works for me <3
– vNext
Nov 15 '13 at 2:38
thanks buddy... works great..
– Kuluval
Jul 8 '14 at 18:27
add a comment |
Disconnect adb over wifi, connect your phone with a USB-cable to your pc. It will ask you on your phone is you want to allow the connection. Tick always allow. You will only get this when you connect with USB and have to do this only once, you can use over wifi afterwards.
Don't get the pop-up? Try the answers on google over a cable, since you need to do this first.
I can't do that... The reason I want to connect over wifi is because my phone USB plug is broken down, it cannot be used anymore.
– lost17
Jul 24 '13 at 19:15
That was the only solution I found to trigger the pop-up over wifi for me unfortunately
– P1nGu1n
Jul 28 '13 at 10:40
this is the answer!! it works for me <3
– vNext
Nov 15 '13 at 2:38
thanks buddy... works great..
– Kuluval
Jul 8 '14 at 18:27
add a comment |
Disconnect adb over wifi, connect your phone with a USB-cable to your pc. It will ask you on your phone is you want to allow the connection. Tick always allow. You will only get this when you connect with USB and have to do this only once, you can use over wifi afterwards.
Don't get the pop-up? Try the answers on google over a cable, since you need to do this first.
Disconnect adb over wifi, connect your phone with a USB-cable to your pc. It will ask you on your phone is you want to allow the connection. Tick always allow. You will only get this when you connect with USB and have to do this only once, you can use over wifi afterwards.
Don't get the pop-up? Try the answers on google over a cable, since you need to do this first.
answered Jul 21 '13 at 21:25
P1nGu1nP1nGu1n
516823
516823
I can't do that... The reason I want to connect over wifi is because my phone USB plug is broken down, it cannot be used anymore.
– lost17
Jul 24 '13 at 19:15
That was the only solution I found to trigger the pop-up over wifi for me unfortunately
– P1nGu1n
Jul 28 '13 at 10:40
this is the answer!! it works for me <3
– vNext
Nov 15 '13 at 2:38
thanks buddy... works great..
– Kuluval
Jul 8 '14 at 18:27
add a comment |
I can't do that... The reason I want to connect over wifi is because my phone USB plug is broken down, it cannot be used anymore.
– lost17
Jul 24 '13 at 19:15
That was the only solution I found to trigger the pop-up over wifi for me unfortunately
– P1nGu1n
Jul 28 '13 at 10:40
this is the answer!! it works for me <3
– vNext
Nov 15 '13 at 2:38
thanks buddy... works great..
– Kuluval
Jul 8 '14 at 18:27
I can't do that... The reason I want to connect over wifi is because my phone USB plug is broken down, it cannot be used anymore.
– lost17
Jul 24 '13 at 19:15
I can't do that... The reason I want to connect over wifi is because my phone USB plug is broken down, it cannot be used anymore.
– lost17
Jul 24 '13 at 19:15
That was the only solution I found to trigger the pop-up over wifi for me unfortunately
– P1nGu1n
Jul 28 '13 at 10:40
That was the only solution I found to trigger the pop-up over wifi for me unfortunately
– P1nGu1n
Jul 28 '13 at 10:40
this is the answer!! it works for me <3
– vNext
Nov 15 '13 at 2:38
this is the answer!! it works for me <3
– vNext
Nov 15 '13 at 2:38
thanks buddy... works great..
– Kuluval
Jul 8 '14 at 18:27
thanks buddy... works great..
– Kuluval
Jul 8 '14 at 18:27
add a comment |
I could not find exact solution for this problem too.
Best way worked for me was disconnecting device from wifi, then try to connect while device is not connected to Wifi like:
adb connect 192.168.55.3:5555
this causes adb waiting for connection. immediately connect device to wifi and adb will detect device and connect again.
hope this helps.
add a comment |
I could not find exact solution for this problem too.
Best way worked for me was disconnecting device from wifi, then try to connect while device is not connected to Wifi like:
adb connect 192.168.55.3:5555
this causes adb waiting for connection. immediately connect device to wifi and adb will detect device and connect again.
hope this helps.
add a comment |
I could not find exact solution for this problem too.
Best way worked for me was disconnecting device from wifi, then try to connect while device is not connected to Wifi like:
adb connect 192.168.55.3:5555
this causes adb waiting for connection. immediately connect device to wifi and adb will detect device and connect again.
hope this helps.
I could not find exact solution for this problem too.
Best way worked for me was disconnecting device from wifi, then try to connect while device is not connected to Wifi like:
adb connect 192.168.55.3:5555
this causes adb waiting for connection. immediately connect device to wifi and adb will detect device and connect again.
hope this helps.
answered Feb 2 '17 at 9:35
Ali ArastehAli Arasteh
5124
5124
add a comment |
add a comment |
It seems you want authenticate adb over wifi.If you had your device rooted,you can try this way.
Copy ~/.android/adb_key.pub to your android device,and rename it to adb_keys
Move it to your /data/misc/adb/
Reboot your android,then reconnect over wifi.
if you have root access, you need no reboot, just do: adb shell su 0 setprop ctl.restart adbd
– diyism
Mar 21 '17 at 5:04
With this I can allow adb connect to VirtualBox android-x86 CM13. Usual connect do not show any prompt on android device.
– Enyby
Jul 18 '17 at 23:29
add a comment |
It seems you want authenticate adb over wifi.If you had your device rooted,you can try this way.
Copy ~/.android/adb_key.pub to your android device,and rename it to adb_keys
Move it to your /data/misc/adb/
Reboot your android,then reconnect over wifi.
if you have root access, you need no reboot, just do: adb shell su 0 setprop ctl.restart adbd
– diyism
Mar 21 '17 at 5:04
With this I can allow adb connect to VirtualBox android-x86 CM13. Usual connect do not show any prompt on android device.
– Enyby
Jul 18 '17 at 23:29
add a comment |
It seems you want authenticate adb over wifi.If you had your device rooted,you can try this way.
Copy ~/.android/adb_key.pub to your android device,and rename it to adb_keys
Move it to your /data/misc/adb/
Reboot your android,then reconnect over wifi.
It seems you want authenticate adb over wifi.If you had your device rooted,you can try this way.
Copy ~/.android/adb_key.pub to your android device,and rename it to adb_keys
Move it to your /data/misc/adb/
Reboot your android,then reconnect over wifi.
answered Apr 29 '15 at 0:36
codefallingcodefalling
591311
591311
if you have root access, you need no reboot, just do: adb shell su 0 setprop ctl.restart adbd
– diyism
Mar 21 '17 at 5:04
With this I can allow adb connect to VirtualBox android-x86 CM13. Usual connect do not show any prompt on android device.
– Enyby
Jul 18 '17 at 23:29
add a comment |
if you have root access, you need no reboot, just do: adb shell su 0 setprop ctl.restart adbd
– diyism
Mar 21 '17 at 5:04
With this I can allow adb connect to VirtualBox android-x86 CM13. Usual connect do not show any prompt on android device.
– Enyby
Jul 18 '17 at 23:29
if you have root access, you need no reboot, just do: adb shell su 0 setprop ctl.restart adbd
– diyism
Mar 21 '17 at 5:04
if you have root access, you need no reboot, just do: adb shell su 0 setprop ctl.restart adbd
– diyism
Mar 21 '17 at 5:04
With this I can allow adb connect to VirtualBox android-x86 CM13. Usual connect do not show any prompt on android device.
– Enyby
Jul 18 '17 at 23:29
With this I can allow adb connect to VirtualBox android-x86 CM13. Usual connect do not show any prompt on android device.
– Enyby
Jul 18 '17 at 23:29
add a comment |
For the first time in debug mode, you need to Authorize your phone with the PC, and that requires the USB cable. After that you can use Debug over WIFI.
If you want to force your phone to show the Authorization message box, simply delete the below file.
/data/misc/adb/adb_key
add a comment |
For the first time in debug mode, you need to Authorize your phone with the PC, and that requires the USB cable. After that you can use Debug over WIFI.
If you want to force your phone to show the Authorization message box, simply delete the below file.
/data/misc/adb/adb_key
add a comment |
For the first time in debug mode, you need to Authorize your phone with the PC, and that requires the USB cable. After that you can use Debug over WIFI.
If you want to force your phone to show the Authorization message box, simply delete the below file.
/data/misc/adb/adb_key
For the first time in debug mode, you need to Authorize your phone with the PC, and that requires the USB cable. After that you can use Debug over WIFI.
If you want to force your phone to show the Authorization message box, simply delete the below file.
/data/misc/adb/adb_key
answered Nov 6 '14 at 4:26
Isuru SamarasingheIsuru Samarasinghe
714
714
add a comment |
add a comment |
- In android studio go to Preferences->Plugins
- Download and install this plugin
ADB WIFI Connect
, restart Android Studio - Connect phone via USB
- In android terminal use command:
adb devices
you should get visible device connected via USB:
List of devices attached
988a57334e57365058 device
- Click on plugin icon in android studio AndroidWiFiADB
- If phone get connected properly via WiFI, you see in event log:
12:41 Android WiFi ADB: Device 'ModelOfYourPhone' connected.
- In android terminal use command:
adb devices
use should get
List of devices attached
988a57334e57365058 device
192.168.60.101:5555 device
- Disconnect USB cable and re-check again
adb devices
, should remain only device connected via wifi:
List of devices attached
192.168.60.101:5555 device
For android studio 3.2.1, UI of "Plugins" is moved to "Files -> Settings -> Plugins"
– Owen Chen
Nov 19 '18 at 9:47
add a comment |
- In android studio go to Preferences->Plugins
- Download and install this plugin
ADB WIFI Connect
, restart Android Studio - Connect phone via USB
- In android terminal use command:
adb devices
you should get visible device connected via USB:
List of devices attached
988a57334e57365058 device
- Click on plugin icon in android studio AndroidWiFiADB
- If phone get connected properly via WiFI, you see in event log:
12:41 Android WiFi ADB: Device 'ModelOfYourPhone' connected.
- In android terminal use command:
adb devices
use should get
List of devices attached
988a57334e57365058 device
192.168.60.101:5555 device
- Disconnect USB cable and re-check again
adb devices
, should remain only device connected via wifi:
List of devices attached
192.168.60.101:5555 device
For android studio 3.2.1, UI of "Plugins" is moved to "Files -> Settings -> Plugins"
– Owen Chen
Nov 19 '18 at 9:47
add a comment |
- In android studio go to Preferences->Plugins
- Download and install this plugin
ADB WIFI Connect
, restart Android Studio - Connect phone via USB
- In android terminal use command:
adb devices
you should get visible device connected via USB:
List of devices attached
988a57334e57365058 device
- Click on plugin icon in android studio AndroidWiFiADB
- If phone get connected properly via WiFI, you see in event log:
12:41 Android WiFi ADB: Device 'ModelOfYourPhone' connected.
- In android terminal use command:
adb devices
use should get
List of devices attached
988a57334e57365058 device
192.168.60.101:5555 device
- Disconnect USB cable and re-check again
adb devices
, should remain only device connected via wifi:
List of devices attached
192.168.60.101:5555 device
- In android studio go to Preferences->Plugins
- Download and install this plugin
ADB WIFI Connect
, restart Android Studio - Connect phone via USB
- In android terminal use command:
adb devices
you should get visible device connected via USB:
List of devices attached
988a57334e57365058 device
- Click on plugin icon in android studio AndroidWiFiADB
- If phone get connected properly via WiFI, you see in event log:
12:41 Android WiFi ADB: Device 'ModelOfYourPhone' connected.
- In android terminal use command:
adb devices
use should get
List of devices attached
988a57334e57365058 device
192.168.60.101:5555 device
- Disconnect USB cable and re-check again
adb devices
, should remain only device connected via wifi:
List of devices attached
192.168.60.101:5555 device
edited Sep 25 '18 at 9:58
answered Sep 24 '18 at 16:36
ivankoivanko
2114
2114
For android studio 3.2.1, UI of "Plugins" is moved to "Files -> Settings -> Plugins"
– Owen Chen
Nov 19 '18 at 9:47
add a comment |
For android studio 3.2.1, UI of "Plugins" is moved to "Files -> Settings -> Plugins"
– Owen Chen
Nov 19 '18 at 9:47
For android studio 3.2.1, UI of "Plugins" is moved to "Files -> Settings -> Plugins"
– Owen Chen
Nov 19 '18 at 9:47
For android studio 3.2.1, UI of "Plugins" is moved to "Files -> Settings -> Plugins"
– Owen Chen
Nov 19 '18 at 9:47
add a comment |
Try disconnecting your device with:
abd disconnect <IP/TCP>:<port>
Then restart the WiFi connection of your device, and reconnect your device with:
abd connect <IP/TCP>:<port>
That may fix it; it worked for me.
add a comment |
Try disconnecting your device with:
abd disconnect <IP/TCP>:<port>
Then restart the WiFi connection of your device, and reconnect your device with:
abd connect <IP/TCP>:<port>
That may fix it; it worked for me.
add a comment |
Try disconnecting your device with:
abd disconnect <IP/TCP>:<port>
Then restart the WiFi connection of your device, and reconnect your device with:
abd connect <IP/TCP>:<port>
That may fix it; it worked for me.
Try disconnecting your device with:
abd disconnect <IP/TCP>:<port>
Then restart the WiFi connection of your device, and reconnect your device with:
abd connect <IP/TCP>:<port>
That may fix it; it worked for me.
edited Mar 22 '15 at 19:45
reuben
3,1891928
3,1891928
answered Mar 22 '15 at 19:35
ParimalParimal
111
111
add a comment |
add a comment |
My solution steps:
- Turn Off WiFi and Turn it back On again.
- Settings -> Developer options -> Revoke USB debugging authorizations.
- Settings -> Developer options -> Turn Off ADB over network and turn it back On again.
- adb kill-server
- adb start-server
- adb connect xx.xx.xx.xx:5555
Note: Step 3 was the key for me. don't forget it.
add a comment |
My solution steps:
- Turn Off WiFi and Turn it back On again.
- Settings -> Developer options -> Revoke USB debugging authorizations.
- Settings -> Developer options -> Turn Off ADB over network and turn it back On again.
- adb kill-server
- adb start-server
- adb connect xx.xx.xx.xx:5555
Note: Step 3 was the key for me. don't forget it.
add a comment |
My solution steps:
- Turn Off WiFi and Turn it back On again.
- Settings -> Developer options -> Revoke USB debugging authorizations.
- Settings -> Developer options -> Turn Off ADB over network and turn it back On again.
- adb kill-server
- adb start-server
- adb connect xx.xx.xx.xx:5555
Note: Step 3 was the key for me. don't forget it.
My solution steps:
- Turn Off WiFi and Turn it back On again.
- Settings -> Developer options -> Revoke USB debugging authorizations.
- Settings -> Developer options -> Turn Off ADB over network and turn it back On again.
- adb kill-server
- adb start-server
- adb connect xx.xx.xx.xx:5555
Note: Step 3 was the key for me. don't forget it.
answered Jun 23 '17 at 10:23
kokabikokabi
1,0651424
1,0651424
add a comment |
add a comment |
Note that wireless adb
connectivity in Android 6.0.0 is broken. Updating to 6.0.1 fixes the issue.
https://stackoverflow.com/a/34530543/1123355
add a comment |
Note that wireless adb
connectivity in Android 6.0.0 is broken. Updating to 6.0.1 fixes the issue.
https://stackoverflow.com/a/34530543/1123355
add a comment |
Note that wireless adb
connectivity in Android 6.0.0 is broken. Updating to 6.0.1 fixes the issue.
https://stackoverflow.com/a/34530543/1123355
Note that wireless adb
connectivity in Android 6.0.0 is broken. Updating to 6.0.1 fixes the issue.
https://stackoverflow.com/a/34530543/1123355
edited May 23 '17 at 12:34
Community♦
11
11
answered Jan 12 '16 at 7:33
Elad NavaElad Nava
4,99522748
4,99522748
add a comment |
add a comment |
In Windows, if you are using system-wide proxy software like Proxifier, you need to add adb.exe
to the ingore list or direct-mode list. In my case, using Proxifier will make adb
able to connect to any IP address even when the phone is not connected to the WiFi, and this leads to device offline.
add a comment |
In Windows, if you are using system-wide proxy software like Proxifier, you need to add adb.exe
to the ingore list or direct-mode list. In my case, using Proxifier will make adb
able to connect to any IP address even when the phone is not connected to the WiFi, and this leads to device offline.
add a comment |
In Windows, if you are using system-wide proxy software like Proxifier, you need to add adb.exe
to the ingore list or direct-mode list. In my case, using Proxifier will make adb
able to connect to any IP address even when the phone is not connected to the WiFi, and this leads to device offline.
In Windows, if you are using system-wide proxy software like Proxifier, you need to add adb.exe
to the ingore list or direct-mode list. In my case, using Proxifier will make adb
able to connect to any IP address even when the phone is not connected to the WiFi, and this leads to device offline.
answered Nov 8 '16 at 4:00
Jiaqi LiuJiaqi Liu
3401314
3401314
add a comment |
add a comment |
I know its late to answer but I believe this is the exact answer:
go to WIFI setting on your device and "set a new IP" in your network IP range an reconnect.
add a comment |
I know its late to answer but I believe this is the exact answer:
go to WIFI setting on your device and "set a new IP" in your network IP range an reconnect.
add a comment |
I know its late to answer but I believe this is the exact answer:
go to WIFI setting on your device and "set a new IP" in your network IP range an reconnect.
I know its late to answer but I believe this is the exact answer:
go to WIFI setting on your device and "set a new IP" in your network IP range an reconnect.
answered Apr 6 '17 at 12:53
Nobody8Nobody8
320410
320410
add a comment |
add a comment |
Conflicting ADB connections can cause this issue as well:
Windows Host with Docker to Hyper-V Android x86 emulator
I didn't see this answer here yet so for those attempting something similar, the issue I had was that the local Windows Host ADB process had already acquired the adb connection during start up (adb server start).
By simply running: adb disconnect <Device/Android x86 Hyper-V ip>:5555
on host machine
Running adb connect <Device/Android x86 Hyper-V ip>:5555
on the Docker container was able to successfully acquire the remote device (aka Android x86 Hyper-V)
IMPORTANT!!! Until you disconnect Docker (or whatever), your host machine (or any others) will not be able to connect, apparently only one ADB connection at a time is allowed.
I didn't need to do anything else listed above. Hope this helps others.
add a comment |
Conflicting ADB connections can cause this issue as well:
Windows Host with Docker to Hyper-V Android x86 emulator
I didn't see this answer here yet so for those attempting something similar, the issue I had was that the local Windows Host ADB process had already acquired the adb connection during start up (adb server start).
By simply running: adb disconnect <Device/Android x86 Hyper-V ip>:5555
on host machine
Running adb connect <Device/Android x86 Hyper-V ip>:5555
on the Docker container was able to successfully acquire the remote device (aka Android x86 Hyper-V)
IMPORTANT!!! Until you disconnect Docker (or whatever), your host machine (or any others) will not be able to connect, apparently only one ADB connection at a time is allowed.
I didn't need to do anything else listed above. Hope this helps others.
add a comment |
Conflicting ADB connections can cause this issue as well:
Windows Host with Docker to Hyper-V Android x86 emulator
I didn't see this answer here yet so for those attempting something similar, the issue I had was that the local Windows Host ADB process had already acquired the adb connection during start up (adb server start).
By simply running: adb disconnect <Device/Android x86 Hyper-V ip>:5555
on host machine
Running adb connect <Device/Android x86 Hyper-V ip>:5555
on the Docker container was able to successfully acquire the remote device (aka Android x86 Hyper-V)
IMPORTANT!!! Until you disconnect Docker (or whatever), your host machine (or any others) will not be able to connect, apparently only one ADB connection at a time is allowed.
I didn't need to do anything else listed above. Hope this helps others.
Conflicting ADB connections can cause this issue as well:
Windows Host with Docker to Hyper-V Android x86 emulator
I didn't see this answer here yet so for those attempting something similar, the issue I had was that the local Windows Host ADB process had already acquired the adb connection during start up (adb server start).
By simply running: adb disconnect <Device/Android x86 Hyper-V ip>:5555
on host machine
Running adb connect <Device/Android x86 Hyper-V ip>:5555
on the Docker container was able to successfully acquire the remote device (aka Android x86 Hyper-V)
IMPORTANT!!! Until you disconnect Docker (or whatever), your host machine (or any others) will not be able to connect, apparently only one ADB connection at a time is allowed.
I didn't need to do anything else listed above. Hope this helps others.
answered Apr 29 '17 at 16:44
James NelsonJames Nelson
501411
501411
add a comment |
add a comment |
Just turn off your Proxifier or something else like this.
Socks5 works fine
1
WHY THE BIG LETTERS??
– stybl
Aug 15 '17 at 11:00
add a comment |
Just turn off your Proxifier or something else like this.
Socks5 works fine
1
WHY THE BIG LETTERS??
– stybl
Aug 15 '17 at 11:00
add a comment |
Just turn off your Proxifier or something else like this.
Socks5 works fine
Just turn off your Proxifier or something else like this.
Socks5 works fine
edited Aug 15 '17 at 11:08
FelixSFD
4,29573086
4,29573086
answered Aug 15 '17 at 10:22
JhonyluluJhonylulu
11
11
1
WHY THE BIG LETTERS??
– stybl
Aug 15 '17 at 11:00
add a comment |
1
WHY THE BIG LETTERS??
– stybl
Aug 15 '17 at 11:00
1
1
WHY THE BIG LETTERS??
– stybl
Aug 15 '17 at 11:00
WHY THE BIG LETTERS??
– stybl
Aug 15 '17 at 11:00
add a comment |
I have this problem just now. Note that my case is special, the usb has been disabled for security concerns. Reboot not working. This is not ip problem since ping
is working and nmap shows 5555 port is open. Also since I will not able to connect if port is wrong, so nothing to do with port.
There are 3 reasons:
Because another pc in the local network already connected, so the other guy have to
adb disconnect
first, then I can doadb disconnect
andadb connect <ip>
, since only one person can connect at the same time.A hotspot ssid name might consists of multiple bssids in (especially you're in office) local network, so you need to ensure your pc try all the hotspot bssids which match the android connected hotspot bssid. Note that I noticed it's not always the case (Now I tried different bssids still success), but it did solved before.
Ensure the port 5555 is open correctly. Even though there are many ways, but you can download this app to open port 5555.
add a comment |
I have this problem just now. Note that my case is special, the usb has been disabled for security concerns. Reboot not working. This is not ip problem since ping
is working and nmap shows 5555 port is open. Also since I will not able to connect if port is wrong, so nothing to do with port.
There are 3 reasons:
Because another pc in the local network already connected, so the other guy have to
adb disconnect
first, then I can doadb disconnect
andadb connect <ip>
, since only one person can connect at the same time.A hotspot ssid name might consists of multiple bssids in (especially you're in office) local network, so you need to ensure your pc try all the hotspot bssids which match the android connected hotspot bssid. Note that I noticed it's not always the case (Now I tried different bssids still success), but it did solved before.
Ensure the port 5555 is open correctly. Even though there are many ways, but you can download this app to open port 5555.
add a comment |
I have this problem just now. Note that my case is special, the usb has been disabled for security concerns. Reboot not working. This is not ip problem since ping
is working and nmap shows 5555 port is open. Also since I will not able to connect if port is wrong, so nothing to do with port.
There are 3 reasons:
Because another pc in the local network already connected, so the other guy have to
adb disconnect
first, then I can doadb disconnect
andadb connect <ip>
, since only one person can connect at the same time.A hotspot ssid name might consists of multiple bssids in (especially you're in office) local network, so you need to ensure your pc try all the hotspot bssids which match the android connected hotspot bssid. Note that I noticed it's not always the case (Now I tried different bssids still success), but it did solved before.
Ensure the port 5555 is open correctly. Even though there are many ways, but you can download this app to open port 5555.
I have this problem just now. Note that my case is special, the usb has been disabled for security concerns. Reboot not working. This is not ip problem since ping
is working and nmap shows 5555 port is open. Also since I will not able to connect if port is wrong, so nothing to do with port.
There are 3 reasons:
Because another pc in the local network already connected, so the other guy have to
adb disconnect
first, then I can doadb disconnect
andadb connect <ip>
, since only one person can connect at the same time.A hotspot ssid name might consists of multiple bssids in (especially you're in office) local network, so you need to ensure your pc try all the hotspot bssids which match the android connected hotspot bssid. Note that I noticed it's not always the case (Now I tried different bssids still success), but it did solved before.
Ensure the port 5555 is open correctly. Even though there are many ways, but you can download this app to open port 5555.
edited Feb 6 '18 at 7:07
answered Feb 5 '18 at 9:54
林果皞林果皞
4,45122444
4,45122444
add a comment |
add a comment |
For me, the important part turned out to be the following line adb tcpip 5555
together with using the port in the IP of my phone like so: adb connect 192.168.1.87:5555
(only using one of them, did not work, i.e: writing the second alone didn't work, writing the first and then excluding the port in the IP also didn't work). The adb tcpip 5555
line is not mentioned anywhere here. So, for me, the PORT needed to be both manually set and used in the connect line!
These are the events of my command line in Windows PowerShell Admin to demonstrate (Wifi on and debug mode on and confirmed permission when the popup came):
notice that the connection first failed, then it said it was connected which is weird behavior to begin with (no matter what, it always failed once and "succeeded" once), and in both instances, the device showed as offline. The disconnect commands also confirm that its 110% offline
PS C:WINDOWSsystem32> adb kill-server
PS C:WINDOWSsystem32> adb start-server
error: protocol fault (couldn't read status): Connection reset by peer
PS C:WINDOWSsystem32> adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
failed to connect to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 offline
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
already connected to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 offline
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb tcpip 5555
restarting in TCP mode port: 5555
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
connected to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 device
As soon as I added the adb tcpip 5555
command and it restarted in TCP mode port: 5555
the adb connect 192.168.1.87:5555
command worked!
add a comment |
For me, the important part turned out to be the following line adb tcpip 5555
together with using the port in the IP of my phone like so: adb connect 192.168.1.87:5555
(only using one of them, did not work, i.e: writing the second alone didn't work, writing the first and then excluding the port in the IP also didn't work). The adb tcpip 5555
line is not mentioned anywhere here. So, for me, the PORT needed to be both manually set and used in the connect line!
These are the events of my command line in Windows PowerShell Admin to demonstrate (Wifi on and debug mode on and confirmed permission when the popup came):
notice that the connection first failed, then it said it was connected which is weird behavior to begin with (no matter what, it always failed once and "succeeded" once), and in both instances, the device showed as offline. The disconnect commands also confirm that its 110% offline
PS C:WINDOWSsystem32> adb kill-server
PS C:WINDOWSsystem32> adb start-server
error: protocol fault (couldn't read status): Connection reset by peer
PS C:WINDOWSsystem32> adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
failed to connect to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 offline
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
already connected to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 offline
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb tcpip 5555
restarting in TCP mode port: 5555
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
connected to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 device
As soon as I added the adb tcpip 5555
command and it restarted in TCP mode port: 5555
the adb connect 192.168.1.87:5555
command worked!
add a comment |
For me, the important part turned out to be the following line adb tcpip 5555
together with using the port in the IP of my phone like so: adb connect 192.168.1.87:5555
(only using one of them, did not work, i.e: writing the second alone didn't work, writing the first and then excluding the port in the IP also didn't work). The adb tcpip 5555
line is not mentioned anywhere here. So, for me, the PORT needed to be both manually set and used in the connect line!
These are the events of my command line in Windows PowerShell Admin to demonstrate (Wifi on and debug mode on and confirmed permission when the popup came):
notice that the connection first failed, then it said it was connected which is weird behavior to begin with (no matter what, it always failed once and "succeeded" once), and in both instances, the device showed as offline. The disconnect commands also confirm that its 110% offline
PS C:WINDOWSsystem32> adb kill-server
PS C:WINDOWSsystem32> adb start-server
error: protocol fault (couldn't read status): Connection reset by peer
PS C:WINDOWSsystem32> adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
failed to connect to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 offline
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
already connected to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 offline
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb tcpip 5555
restarting in TCP mode port: 5555
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
connected to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 device
As soon as I added the adb tcpip 5555
command and it restarted in TCP mode port: 5555
the adb connect 192.168.1.87:5555
command worked!
For me, the important part turned out to be the following line adb tcpip 5555
together with using the port in the IP of my phone like so: adb connect 192.168.1.87:5555
(only using one of them, did not work, i.e: writing the second alone didn't work, writing the first and then excluding the port in the IP also didn't work). The adb tcpip 5555
line is not mentioned anywhere here. So, for me, the PORT needed to be both manually set and used in the connect line!
These are the events of my command line in Windows PowerShell Admin to demonstrate (Wifi on and debug mode on and confirmed permission when the popup came):
notice that the connection first failed, then it said it was connected which is weird behavior to begin with (no matter what, it always failed once and "succeeded" once), and in both instances, the device showed as offline. The disconnect commands also confirm that its 110% offline
PS C:WINDOWSsystem32> adb kill-server
PS C:WINDOWSsystem32> adb start-server
error: protocol fault (couldn't read status): Connection reset by peer
PS C:WINDOWSsystem32> adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
failed to connect to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 offline
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
already connected to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 offline
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb tcpip 5555
restarting in TCP mode port: 5555
PS C:WINDOWSsystem32> adb disconnect 192.168.1.87:5555
error: no such device '192.168.1.87:5555'
PS C:WINDOWSsystem32> adb connect 192.168.1.87:5555
connected to 192.168.1.87:5555
PS C:WINDOWSsystem32> adb devices
List of devices attached
220947272e047ece device
192.168.1.87:5555 device
As soon as I added the adb tcpip 5555
command and it restarted in TCP mode port: 5555
the adb connect 192.168.1.87:5555
command worked!
answered Nov 23 '18 at 23:14
Streching my competenceStreching my competence
92111
92111
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f17626691%2fadb-device-offline-with-adb-wireless%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown