Setting Up a Wireless ADB Connection with Android over WiFi

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Instead of using a USB cable, we can set up an ADB connection with Android over WiFi with the Wireless Debugging feature.
    ~~~~~
    Hi! Don't forget to like the video, subscribe to the channel, and hit the "Thanks" button on this video, if you can, and join our channel community here - / @explainingandroid
    Video Description
    ~~~~~~~~~~~~~~~~~
    Today I want to show you how to set up an ADB connection with your smartphone or tablet without having to use a USB cable at all.
    #android #googlepixel #samsunggalaxy
    Most people will choose to connect a USB cable to their Android device when they want to do something with ADB. In some cases, this is best because most of the time it gives you a faster connection. But there are times when using a USB cable isn't possible.
    Maybe your USB cable recently broke and you don't have another one laying around.
    Or maybe you're having issues with a USB port on your computer.
    There can also be instances when a wireless connection is just more convenient.
    No matter what your reasons are, we are able to set this up on any smartphone or tablet running Android 11 or later.
    To begin, we need to enable what is commonly referred to Developer Mode.
    If this is something you're not familiar with, then be sure to check the video description below for links to dedicated videos that I have already done which show you all of the steps involved in this.
    Once Developer Mode has been enabled, we can search for the newly revealed Developer Options menu from within the Settings application
    Now, we just need to scroll down a little bit until you get to the Debugging section. This should be close to the top and shouldn't take much scrolling to find.
    Usually when we want to execute ADB commands on our device, we need to enable the USB Debugging option because we're making that connection over a USB cable.
    But if you plan on using wireless debugging then that toggle doesn't need to be enabled at all.
    Instead, we want to enable the toggle labeled Wireless Debugging, which should appear under the usual USB Debugging option
    Once this feature has been enabled, we then need to tap the name of the option so we can go into the details area.
    If this is your first time using the wireless debugging feature, then you won't see anything in this Paired Devices section.
    And in order to proceed, we need to pair our devices first.
    So let's tap the Pair Device with Pairing Code option and this will give us some details.
    Now let's turn our attention to the PC and open up a command prompt, windows powershell or a terminal window within the same folder as our ADB and Fastboot tools. If you don't have ADB & Fastboot tools installed yet, I'll include a link to a dedicated tutorial I have done in the video description below that will show you how to set it up.
    We need to make note of the ip address here and the port number next to it.
    In this command prompt, we're going to type out the command. . .
    adb pair ip:port
    When we press enter on the keyboard, it will ask us for the pairing code.
    This is where we input the pairing code that is displayed on our Android smartphone or tablet.
    As long as we get a Successfully Paired message here, then we have set this part up correctly.
    Once we have paired our two devices together, we can then make the wireless debugging connection over WiFi.
    So let's look at our phone again and again, we need to make note of the IP address and port number that we see here on this page.
    With that information, let's go back to our command prompt window and establish that ADB connection over WiFi.
    We do that by typing out the command. . .
    adb connect ip:port
    And and then press enter on the keyboard.
    If we do not see any error messages here then that means the connection is successful.
    When this connection has been made, we'll also get a notification about it on our device.
    From here, we can drop into an ADB shell or execute any other ADB commands that we would normally do over a USB cable.
    I hope this has helped anyone who has ever seen the Wireless Debugging feature and wondered how it could be used.
    Mentioned Links
    ~~~~~~~~~~~~~~~~
    ADB & Fastboot Tools - • Download and Install T...
    Samsung Galaxy Developer Mode - • How to Turn On Galaxy ...
    Google Pixel Developer Mode - • How to Enable Develope...
    Xiaomi MIUI Developer Mode - • How to Turn On the Xia...
    Step by Step Tutorial
    ~~~~~~~~~~~~~~~~~
    1. Intro [00:00]
    2.
    As an Amazon associate, I may earn a commission on sales from the links below.
    The Gear I Use
    ~~~~~~~~~~~~~~~~~
    5W "Slow" Charger - amzn.to/2OaUMV8
    Fast Charger - amzn.to/3rtBsC6
    MicroUSB Cable - amzn.to/38dkpeM
    USB-C Cable - amzn.to/2OqlTvi
    TPU Cases - amzn.to/38g9b9w
    USB-C to 3.5mm Dongle - amzn.to/3rVt7c3
    USB-C to 3.5mm DAC - amzn.to/3CyksSJ
    NVIDIA Shield TV - bit.ly/3KA17RV

Комментарии • 70

  • @stevenbroshar7948
    @stevenbroshar7948 7 месяцев назад +4

    This is super. IDK why I can't connect via the Android Studio UI, but it never works for me. Your procedure works !!!

  • @visheshgupta4990
    @visheshgupta4990 2 месяца назад +1

    Thank You so much I searched alot but didn't find any good solution . Your video is crystal clear and very helpful. Thank you so much bro 🙌

  • @ne1711
    @ne1711 8 месяцев назад +1

    great video. one thing i faced - my device was not connecting because both of them were not under same wifi. so make sure both PC and phone are under the same wifi connection.

  • @riyanwhyte8365
    @riyanwhyte8365 Год назад +3

    Thanks bro a million likes

    • @ExplainingAndroid
      @ExplainingAndroid  Год назад +1

      you're too kind. thank you for the comment
      If you're able to, please consider becoming a RUclips channel member here - www.youtube.com/@ExplainingAndroid/join

  • @rdevries48
    @rdevries48 Год назад +4

    Thanks! That really helped me out!

    • @ExplainingAndroid
      @ExplainingAndroid  Год назад +1

      happy to help out
      If you're able to, please consider becoming a RUclips channel member here - www.youtube.com/@ExplainingAndroid/join

  • @BenHutchinson321
    @BenHutchinson321 7 месяцев назад +2

    Not working for me. When I use the connect command after the pair command, it gives the response "No connection could be made because the target machine actively refused it". I'm on a phone with Android 13. Things may have changed since your video, when Android was updated to 13. The pairing works fine but the connecting step after doesn't work. I can't help but think that the message after pairing might be important for this next step on Android 13. It gave a GUID for the device in the response to the Pair command, and I don't see you using that GUID in any of your commands after that. Does Android 13 require additional ADB commands that actually use the GUID? Also I happened to notice that the toggle for unlocking the bootloader was switched to the on position, which means your device is rooted. Do I need to root my device to make this work?

  • @raydigitalsolution7336
    @raydigitalsolution7336 7 месяцев назад

    I successfully pair my device and In my case to solve the error "No connection could be made because the target machine actively refused it. (10061)" I enable the usb debugging and the port changes. then i try to connect with the new port and it successfully connected. BTW. thanks @Explaining Android for sharing this video.

  • @the_null
    @the_null Год назад +2

    Thanks sir 👍👍 God bless you.

    • @ExplainingAndroid
      @ExplainingAndroid  Год назад

      you're more than welcome :) thank you for taking the time to leave a comment here on the channel
      If you're able to, please consider becoming a RUclips channel member here - www.youtube.com/@ExplainingAndroid/join

  • @abdelghanimoumen2524
    @abdelghanimoumen2524 6 месяцев назад +1

    crazy explanation thanks

  • @Thalhez
    @Thalhez 7 месяцев назад +2

    Hello, I have a problem.
    Every time that I execute this command in cmd command prompt : adb pair it says that "adb" is not recognized as command

    • @ExplainingAndroid
      @ExplainingAndroid  7 месяцев назад +2

      you need to execute that command FROM the same folder as your ADB/Fastboot files

    • @ibrahim_almurisi
      @ibrahim_almurisi 2 месяца назад

      How? ​@@ExplainingAndroid

  • @chuckt5930
    @chuckt5930 5 месяцев назад

    AWESOMENESS connected successfully with the terminal but inside vs code the commands don't work anyway so long as i can debug. Thanks and subscribed.

  • @user-bs9wb8zr3y
    @user-bs9wb8zr3y 3 месяца назад

    Thank you so much ,I did it finally!

  • @someoneyouveneverheardof
    @someoneyouveneverheardof Год назад +2

    Thanks! Was desperately looking for this.

    • @ExplainingAndroid
      @ExplainingAndroid  Год назад

      you're very welcome
      If you're able to, please consider becoming a RUclips channel member here - www.youtube.com/@ExplainingAndroid/join

  • @xcloudx01alt
    @xcloudx01alt Год назад +8

    EDIT: Fixed it. If it gives you the "No connection could be made because the target machine actively refused it. (10061)" error than you need to remove "-d" in the command you're trying to send.

    • @ExplainingAndroid
      @ExplainingAndroid  Год назад +3

      that's interesting to hear. thank you for taking the time to share this tip with the community
      If you're able to, please consider becoming a RUclips channel member here - www.youtube.com/@ExplainingAndroid/join

    • @ZaZulin
      @ZaZulin Год назад +3

      There's no -d in the command, can you tell me where is it?

    • @dshorts9604
      @dshorts9604 Год назад +1

      Bro did you get the solution if yes then help me

    • @TimberWulfIsHere
      @TimberWulfIsHere 2 месяца назад

      What a useless comment

  • @CrisVII
    @CrisVII 11 месяцев назад

    Thanks mate, good tutorial

  • @younlo2440
    @younlo2440 Год назад +1

    Hi,
    Can i use scrcpy after i pair and connect device

  • @chauhansonu104
    @chauhansonu104 Год назад +1

    Thank you for the video it really helped. A question I wanna ask is that when I push a file to my Android the file is being transferred at a rate of 10 MB/s. whereas my wifi router has a higher capacity to transfer and my Android which has ufs 2.1 has a minimum of 200 MB/s of write speed. why is the file being transferred at such a low rate, and is there any way to increase that. Thank you.

    • @ExplainingAndroid
      @ExplainingAndroid  Год назад

      when I tried to find out if there was a confirmed speed limit for wireless debugging, I couldn't find any details about it. but this could be a limitation of Android itself
      let me know if you come across some documentation (or even other people) confirming this

  • @luckychukiye8743
    @luckychukiye8743 11 месяцев назад

    Hey there
    I plan to grab the Pixel when it comes
    Would this work to install Graphine/custom rom? instead of using physical cable?

  • @ginhielkennethorteza9921
    @ginhielkennethorteza9921 2 месяца назад

    Good day I'm new subscriber, I saw your video 1 year ago about LADB without pc. I have a problem if I turn on the wireless debugging it says because an app is obscuring a permission request, settings can't verify your response can you help me to solve that cause I've been struggling for like 5 months

  • @stereoplaces7408
    @stereoplaces7408 6 месяцев назад

    Hi, do I need to repeat this every time I turn off my computer?

  • @Techie1971
    @Techie1971 7 месяцев назад

    How do I remove some system apps on my galaxy s8 without using wireless or usb debugging since I don't have a computer, and wireless debugging isn't showing on android 9?

  • @anhvunguyen8171
    @anhvunguyen8171 9 месяцев назад

    Thank you a lot!

  • @dhruv.umraniya
    @dhruv.umraniya 3 месяца назад

    Is it possible to replace Phone recovery to twrp by using it? USB dead so.

  • @ercanunsalerturk6138
    @ercanunsalerturk6138 Год назад +2

    would this work on quest 2 devices?

    • @ExplainingAndroid
      @ExplainingAndroid  Год назад

      I don't own that device. If it's running Android though, then it is likely possible (unless Facebook removed it)

  • @ucanh8173
    @ucanh8173 Год назад +1

    i can pair but not connect , it said "not on the same net work" but they are really are in the same network ! Help !

  • @hamedayokunle2747
    @hamedayokunle2747 Год назад +1

    Please can you make a video on how to install and use floating windows like (miui floating windows) on custom rom like lineage.

    • @ExplainingAndroid
      @ExplainingAndroid  Год назад +1

      I don't think we can replicate that feature exactly, but I will upload a video about how to enable this type of feature in a few hours

    • @hamedayokunle2747
      @hamedayokunle2747 Год назад

      @@ExplainingAndroid thanks

  • @riyadulislam2220
    @riyadulislam2220 5 месяцев назад

    worked thanks

  • @kundalwando7683
    @kundalwando7683 3 месяца назад

    Bro I use mobile data and it keeps failing saying connect to wifi. How can I fix.

  • @HW-eb9yq
    @HW-eb9yq 2 месяца назад

    Gracias me sirvió !! :D

  • @AaryaMalik-fu2kv
    @AaryaMalik-fu2kv 2 месяца назад

    Tq❤

  • @monicemclean9346
    @monicemclean9346 7 месяцев назад +1

    I have a Note 9 and it is not showing "wireless debugging ". Please help

    • @user-xv6el9nv5v
      @user-xv6el9nv5v 9 дней назад

      It's compatible with only android 11 or more unfortunately

  • @prathameshchaudhari3800
    @prathameshchaudhari3800 6 месяцев назад

    Bro any Virtual apks like Vphonegaga Virtual machine it's can Activation Problem Android 13

  • @domellli
    @domellli 3 месяца назад

    If the router is dual-band (2.4 GHz, 5 GHz), it is possible that the computer and the phone are on two different Wifi networks, in which case pairing will not work !!!

  • @mipad553
    @mipad553 Месяц назад

    How to remove paired devices

  • @mazenhema8892
    @mazenhema8892 12 дней назад +1

    I don't have the developer options

    • @ExplainingAndroid
      @ExplainingAndroid  11 дней назад

      Which phone do you have? Have you enabled developer mode?

  • @Dragons927
    @Dragons927 8 месяцев назад

    No connection could be made because the target machine actively refused it. (10061) after pair change port with new

  • @vasea986
    @vasea986 4 месяца назад +1

    Hello! Please help if someone can of course! I wanted to connect through my computer to my Samsung Galaxy Note 10 phone and it doesn’t want to work and gives an error. Maybe someone knows how to solve this problem! Thanks for understanding!

    • @ExplainingAndroid
      @ExplainingAndroid  4 месяца назад

      which error are you getting?

    • @vasea986
      @vasea986 4 месяца назад

      @@ExplainingAndroid error: device unauthorized.
      This adb server's $ADB_VENDOR_KEYS is not set
      Try 'adb kill-server' if that seems wrong.
      Otherwise check for a confirmation dialog on your device.

  • @narpwa
    @narpwa 3 месяца назад

    helpful video but why are you talking so slowly

  • @johnwick6383
    @johnwick6383 Год назад

    why does mine shows sqLite......

  • @generalknowledge6936
    @generalknowledge6936 11 месяцев назад

    एंड्राइड से एंड्रॉयड वायरलेस डिबंगिग मोड कैसे लगा सकते है ?

  • @jameela.p6765
    @jameela.p6765 Месяц назад

    Adb not discovered

  • @narasinghrao3535
    @narasinghrao3535 3 месяца назад

    Proto fault error

  • @area-XXX
    @area-XXX Год назад +2

    never done, never connected wireless I ignored speaking of which Magisk APK stays with img. fixed opens after I turn on the phone and after 2 or 3 hours it doesn't open and I have to try again at least 6/7 times and as if it were sleeping😂

  • @Coms_Productions
    @Coms_Productions Год назад +1

    pair command ain't available apparently

    • @care-m7k
      @care-m7k 8 месяцев назад

      𝗜𝘁 𝗶𝘀 𝗮𝘃𝗮𝗶𝗹𝗮𝗯𝗹𝗲

  • @Lazchh
    @Lazchh 7 месяцев назад

    malaka ti einai afto to video xriste kai panagia o bro mou o ppaparathalis de katalabe xristo!

  • @Qura_Interpretation
    @Qura_Interpretation Год назад +2

    Says no connection could be made because the target machine actively refused it. Any help???

    • @xcloudx01alt
      @xcloudx01alt Год назад

      Remove the "-d" in your command.

    • @ExplainingAndroid
      @ExplainingAndroid  Год назад

      did removing the -d from the command help?

    • @xerathnormand2842
      @xerathnormand2842 Год назад

      @@xcloudx01alt I have the same problem but there is no -d in the command