adb device offline with ADB wireless












10















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?










share|improve this question



























    10















    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?










    share|improve this question

























      10












      10








      10


      6






      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?










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 13 '13 at 3:27









      lost17lost17

      4422726




      4422726
























          16 Answers
          16






          active

          oldest

          votes


















          18














          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.








          share|improve this answer



















          • 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



















          7














          run adb kill-server, then try to connect wirelessly again. It worked for me.






          share|improve this answer
























          • 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



















          5














          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.






          share|improve this answer
























          • 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



















          5














          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.






          share|improve this answer































            4














            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.







            share|improve this answer
























            • 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





















            3














            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





            share|improve this answer































              2















              1. In android studio go to Preferences->Plugins

              2. Download and install this plugin
                ADB WIFI Connect
                , restart Android Studio

              3. Connect phone via USB

              4. In android terminal use command: adb devicesyou should get visible device connected via USB:



              List of devices attached

              988a57334e57365058 device




              1. Click on plugin icon in android studio AndroidWiFiADB

              2. If phone get connected properly via WiFI, you see in event log:



              12:41 Android WiFi ADB: Device 'ModelOfYourPhone' connected.





              1. In android terminal use command: adb devices use should get



              List of devices attached
              988a57334e57365058 device
              192.168.60.101:5555 device




              1. 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






              share|improve this answer


























              • For android studio 3.2.1, UI of "Plugins" is moved to "Files -> Settings -> Plugins"

                – Owen Chen
                Nov 19 '18 at 9:47



















              1














              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.






              share|improve this answer

































                1














                My solution steps:




                1. Turn Off WiFi and Turn it back On again.

                2. Settings -> Developer options -> Revoke USB debugging authorizations.

                3. Settings -> Developer options -> Turn Off ADB over network and turn it back On again.

                4. adb kill-server

                5. adb start-server

                6. adb connect xx.xx.xx.xx:5555


                Note: Step 3 was the key for me. don't forget it.






                share|improve this answer































                  0














                  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






                  share|improve this answer

































                    0














                    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.






                    share|improve this answer































                      0














                      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.






                      share|improve this answer































                        0














                        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.






                        share|improve this answer































                          0














                          Just turn off your Proxifier or something else like this.



                          Socks5 works fine






                          share|improve this answer





















                          • 1





                            WHY THE BIG LETTERS??

                            – stybl
                            Aug 15 '17 at 11:00



















                          0














                          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:




                          1. Because another pc in the local network already connected, so the other guy have to adb disconnect first, then I can do adb disconnect and adb connect <ip>, since only one person can connect at the same time.


                          2. 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.


                          3. Ensure the port 5555 is open correctly. Even though there are many ways, but you can download this app to open port 5555.







                          share|improve this answer

































                            0














                            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!






                            share|improve this answer























                              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
                              });


                              }
                              });














                              draft saved

                              draft discarded


















                              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









                              18














                              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.








                              share|improve this answer



















                              • 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
















                              18














                              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.








                              share|improve this answer



















                              • 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














                              18












                              18








                              18







                              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.








                              share|improve this answer













                              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.









                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              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














                              • 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













                              7














                              run adb kill-server, then try to connect wirelessly again. It worked for me.






                              share|improve this answer
























                              • 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
















                              7














                              run adb kill-server, then try to connect wirelessly again. It worked for me.






                              share|improve this answer
























                              • 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














                              7












                              7








                              7







                              run adb kill-server, then try to connect wirelessly again. It worked for me.






                              share|improve this answer













                              run adb kill-server, then try to connect wirelessly again. It worked for me.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              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



















                              • 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











                              5














                              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.






                              share|improve this answer
























                              • 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
















                              5














                              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.






                              share|improve this answer
























                              • 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














                              5












                              5








                              5







                              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.






                              share|improve this answer













                              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.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              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



















                              • 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











                              5














                              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.






                              share|improve this answer




























                                5














                                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.






                                share|improve this answer


























                                  5












                                  5








                                  5







                                  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.






                                  share|improve this answer













                                  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.







                                  share|improve this answer












                                  share|improve this answer



                                  share|improve this answer










                                  answered Feb 2 '17 at 9:35









                                  Ali ArastehAli Arasteh

                                  5124




                                  5124























                                      4














                                      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.







                                      share|improve this answer
























                                      • 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


















                                      4














                                      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.







                                      share|improve this answer
























                                      • 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
















                                      4












                                      4








                                      4







                                      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.







                                      share|improve this answer













                                      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.








                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      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





















                                      • 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













                                      3














                                      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





                                      share|improve this answer




























                                        3














                                        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





                                        share|improve this answer


























                                          3












                                          3








                                          3







                                          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





                                          share|improve this answer













                                          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






                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered Nov 6 '14 at 4:26









                                          Isuru SamarasingheIsuru Samarasinghe

                                          714




                                          714























                                              2















                                              1. In android studio go to Preferences->Plugins

                                              2. Download and install this plugin
                                                ADB WIFI Connect
                                                , restart Android Studio

                                              3. Connect phone via USB

                                              4. In android terminal use command: adb devicesyou should get visible device connected via USB:



                                              List of devices attached

                                              988a57334e57365058 device




                                              1. Click on plugin icon in android studio AndroidWiFiADB

                                              2. If phone get connected properly via WiFI, you see in event log:



                                              12:41 Android WiFi ADB: Device 'ModelOfYourPhone' connected.





                                              1. In android terminal use command: adb devices use should get



                                              List of devices attached
                                              988a57334e57365058 device
                                              192.168.60.101:5555 device




                                              1. 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






                                              share|improve this answer


























                                              • For android studio 3.2.1, UI of "Plugins" is moved to "Files -> Settings -> Plugins"

                                                – Owen Chen
                                                Nov 19 '18 at 9:47
















                                              2















                                              1. In android studio go to Preferences->Plugins

                                              2. Download and install this plugin
                                                ADB WIFI Connect
                                                , restart Android Studio

                                              3. Connect phone via USB

                                              4. In android terminal use command: adb devicesyou should get visible device connected via USB:



                                              List of devices attached

                                              988a57334e57365058 device




                                              1. Click on plugin icon in android studio AndroidWiFiADB

                                              2. If phone get connected properly via WiFI, you see in event log:



                                              12:41 Android WiFi ADB: Device 'ModelOfYourPhone' connected.





                                              1. In android terminal use command: adb devices use should get



                                              List of devices attached
                                              988a57334e57365058 device
                                              192.168.60.101:5555 device




                                              1. 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






                                              share|improve this answer


























                                              • For android studio 3.2.1, UI of "Plugins" is moved to "Files -> Settings -> Plugins"

                                                – Owen Chen
                                                Nov 19 '18 at 9:47














                                              2












                                              2








                                              2








                                              1. In android studio go to Preferences->Plugins

                                              2. Download and install this plugin
                                                ADB WIFI Connect
                                                , restart Android Studio

                                              3. Connect phone via USB

                                              4. In android terminal use command: adb devicesyou should get visible device connected via USB:



                                              List of devices attached

                                              988a57334e57365058 device




                                              1. Click on plugin icon in android studio AndroidWiFiADB

                                              2. If phone get connected properly via WiFI, you see in event log:



                                              12:41 Android WiFi ADB: Device 'ModelOfYourPhone' connected.





                                              1. In android terminal use command: adb devices use should get



                                              List of devices attached
                                              988a57334e57365058 device
                                              192.168.60.101:5555 device




                                              1. 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






                                              share|improve this answer
















                                              1. In android studio go to Preferences->Plugins

                                              2. Download and install this plugin
                                                ADB WIFI Connect
                                                , restart Android Studio

                                              3. Connect phone via USB

                                              4. In android terminal use command: adb devicesyou should get visible device connected via USB:



                                              List of devices attached

                                              988a57334e57365058 device




                                              1. Click on plugin icon in android studio AndroidWiFiADB

                                              2. If phone get connected properly via WiFI, you see in event log:



                                              12:41 Android WiFi ADB: Device 'ModelOfYourPhone' connected.





                                              1. In android terminal use command: adb devices use should get



                                              List of devices attached
                                              988a57334e57365058 device
                                              192.168.60.101:5555 device




                                              1. 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







                                              share|improve this answer














                                              share|improve this answer



                                              share|improve this answer








                                              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



















                                              • 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











                                              1














                                              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.






                                              share|improve this answer






























                                                1














                                                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.






                                                share|improve this answer




























                                                  1












                                                  1








                                                  1







                                                  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.






                                                  share|improve this answer















                                                  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.







                                                  share|improve this answer














                                                  share|improve this answer



                                                  share|improve this answer








                                                  edited Mar 22 '15 at 19:45









                                                  reuben

                                                  3,1891928




                                                  3,1891928










                                                  answered Mar 22 '15 at 19:35









                                                  ParimalParimal

                                                  111




                                                  111























                                                      1














                                                      My solution steps:




                                                      1. Turn Off WiFi and Turn it back On again.

                                                      2. Settings -> Developer options -> Revoke USB debugging authorizations.

                                                      3. Settings -> Developer options -> Turn Off ADB over network and turn it back On again.

                                                      4. adb kill-server

                                                      5. adb start-server

                                                      6. adb connect xx.xx.xx.xx:5555


                                                      Note: Step 3 was the key for me. don't forget it.






                                                      share|improve this answer




























                                                        1














                                                        My solution steps:




                                                        1. Turn Off WiFi and Turn it back On again.

                                                        2. Settings -> Developer options -> Revoke USB debugging authorizations.

                                                        3. Settings -> Developer options -> Turn Off ADB over network and turn it back On again.

                                                        4. adb kill-server

                                                        5. adb start-server

                                                        6. adb connect xx.xx.xx.xx:5555


                                                        Note: Step 3 was the key for me. don't forget it.






                                                        share|improve this answer


























                                                          1












                                                          1








                                                          1







                                                          My solution steps:




                                                          1. Turn Off WiFi and Turn it back On again.

                                                          2. Settings -> Developer options -> Revoke USB debugging authorizations.

                                                          3. Settings -> Developer options -> Turn Off ADB over network and turn it back On again.

                                                          4. adb kill-server

                                                          5. adb start-server

                                                          6. adb connect xx.xx.xx.xx:5555


                                                          Note: Step 3 was the key for me. don't forget it.






                                                          share|improve this answer













                                                          My solution steps:




                                                          1. Turn Off WiFi and Turn it back On again.

                                                          2. Settings -> Developer options -> Revoke USB debugging authorizations.

                                                          3. Settings -> Developer options -> Turn Off ADB over network and turn it back On again.

                                                          4. adb kill-server

                                                          5. adb start-server

                                                          6. adb connect xx.xx.xx.xx:5555


                                                          Note: Step 3 was the key for me. don't forget it.







                                                          share|improve this answer












                                                          share|improve this answer



                                                          share|improve this answer










                                                          answered Jun 23 '17 at 10:23









                                                          kokabikokabi

                                                          1,0651424




                                                          1,0651424























                                                              0














                                                              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






                                                              share|improve this answer






























                                                                0














                                                                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






                                                                share|improve this answer




























                                                                  0












                                                                  0








                                                                  0







                                                                  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






                                                                  share|improve this answer















                                                                  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







                                                                  share|improve this answer














                                                                  share|improve this answer



                                                                  share|improve this answer








                                                                  edited May 23 '17 at 12:34









                                                                  Community

                                                                  11




                                                                  11










                                                                  answered Jan 12 '16 at 7:33









                                                                  Elad NavaElad Nava

                                                                  4,99522748




                                                                  4,99522748























                                                                      0














                                                                      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.






                                                                      share|improve this answer




























                                                                        0














                                                                        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.






                                                                        share|improve this answer


























                                                                          0












                                                                          0








                                                                          0







                                                                          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.






                                                                          share|improve this answer













                                                                          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.







                                                                          share|improve this answer












                                                                          share|improve this answer



                                                                          share|improve this answer










                                                                          answered Nov 8 '16 at 4:00









                                                                          Jiaqi LiuJiaqi Liu

                                                                          3401314




                                                                          3401314























                                                                              0














                                                                              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.






                                                                              share|improve this answer




























                                                                                0














                                                                                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.






                                                                                share|improve this answer


























                                                                                  0












                                                                                  0








                                                                                  0







                                                                                  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.






                                                                                  share|improve this answer













                                                                                  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.







                                                                                  share|improve this answer












                                                                                  share|improve this answer



                                                                                  share|improve this answer










                                                                                  answered Apr 6 '17 at 12:53









                                                                                  Nobody8Nobody8

                                                                                  320410




                                                                                  320410























                                                                                      0














                                                                                      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.






                                                                                      share|improve this answer




























                                                                                        0














                                                                                        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.






                                                                                        share|improve this answer


























                                                                                          0












                                                                                          0








                                                                                          0







                                                                                          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.






                                                                                          share|improve this answer













                                                                                          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.







                                                                                          share|improve this answer












                                                                                          share|improve this answer



                                                                                          share|improve this answer










                                                                                          answered Apr 29 '17 at 16:44









                                                                                          James NelsonJames Nelson

                                                                                          501411




                                                                                          501411























                                                                                              0














                                                                                              Just turn off your Proxifier or something else like this.



                                                                                              Socks5 works fine






                                                                                              share|improve this answer





















                                                                                              • 1





                                                                                                WHY THE BIG LETTERS??

                                                                                                – stybl
                                                                                                Aug 15 '17 at 11:00
















                                                                                              0














                                                                                              Just turn off your Proxifier or something else like this.



                                                                                              Socks5 works fine






                                                                                              share|improve this answer





















                                                                                              • 1





                                                                                                WHY THE BIG LETTERS??

                                                                                                – stybl
                                                                                                Aug 15 '17 at 11:00














                                                                                              0












                                                                                              0








                                                                                              0







                                                                                              Just turn off your Proxifier or something else like this.



                                                                                              Socks5 works fine






                                                                                              share|improve this answer















                                                                                              Just turn off your Proxifier or something else like this.



                                                                                              Socks5 works fine







                                                                                              share|improve this answer














                                                                                              share|improve this answer



                                                                                              share|improve this answer








                                                                                              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














                                                                                              • 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











                                                                                              0














                                                                                              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:




                                                                                              1. Because another pc in the local network already connected, so the other guy have to adb disconnect first, then I can do adb disconnect and adb connect <ip>, since only one person can connect at the same time.


                                                                                              2. 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.


                                                                                              3. Ensure the port 5555 is open correctly. Even though there are many ways, but you can download this app to open port 5555.







                                                                                              share|improve this answer






























                                                                                                0














                                                                                                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:




                                                                                                1. Because another pc in the local network already connected, so the other guy have to adb disconnect first, then I can do adb disconnect and adb connect <ip>, since only one person can connect at the same time.


                                                                                                2. 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.


                                                                                                3. Ensure the port 5555 is open correctly. Even though there are many ways, but you can download this app to open port 5555.







                                                                                                share|improve this answer




























                                                                                                  0












                                                                                                  0








                                                                                                  0







                                                                                                  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:




                                                                                                  1. Because another pc in the local network already connected, so the other guy have to adb disconnect first, then I can do adb disconnect and adb connect <ip>, since only one person can connect at the same time.


                                                                                                  2. 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.


                                                                                                  3. Ensure the port 5555 is open correctly. Even though there are many ways, but you can download this app to open port 5555.







                                                                                                  share|improve this answer















                                                                                                  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:




                                                                                                  1. Because another pc in the local network already connected, so the other guy have to adb disconnect first, then I can do adb disconnect and adb connect <ip>, since only one person can connect at the same time.


                                                                                                  2. 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.


                                                                                                  3. Ensure the port 5555 is open correctly. Even though there are many ways, but you can download this app to open port 5555.








                                                                                                  share|improve this answer














                                                                                                  share|improve this answer



                                                                                                  share|improve this answer








                                                                                                  edited Feb 6 '18 at 7:07

























                                                                                                  answered Feb 5 '18 at 9:54









                                                                                                  林果皞林果皞

                                                                                                  4,45122444




                                                                                                  4,45122444























                                                                                                      0














                                                                                                      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!






                                                                                                      share|improve this answer




























                                                                                                        0














                                                                                                        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!






                                                                                                        share|improve this answer


























                                                                                                          0












                                                                                                          0








                                                                                                          0







                                                                                                          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!






                                                                                                          share|improve this answer













                                                                                                          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!







                                                                                                          share|improve this answer












                                                                                                          share|improve this answer



                                                                                                          share|improve this answer










                                                                                                          answered Nov 23 '18 at 23:14









                                                                                                          Streching my competenceStreching my competence

                                                                                                          92111




                                                                                                          92111






























                                                                                                              draft saved

                                                                                                              draft discarded




















































                                                                                                              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.




                                                                                                              draft saved


                                                                                                              draft discarded














                                                                                                              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





















































                                                                                                              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







                                                                                                              Popular posts from this blog

                                                                                                              Costa Masnaga

                                                                                                              Fotorealismo

                                                                                                              Create new schema in PostgreSQL using DBeaver