Setting Up a Wireless ADB Connection with Android over WiFi

  Рет қаралды 78,624

Explaining Android

Explaining Android

Күн бұрын

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

Пікірлер: 78
@stevenbroshar7948
@stevenbroshar7948 8 ай бұрын
This is super. IDK why I can't connect via the Android Studio UI, but it never works for me. Your procedure works !!!
@ExplainingAndroid
@ExplainingAndroid Ай бұрын
that's awesome to hear! thanks for the comment
@visheshgupta4990
@visheshgupta4990 3 ай бұрын
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 🙌
@ExplainingAndroid
@ExplainingAndroid Ай бұрын
you're very welcome. thank you so much for the kind words
@ne1711
@ne1711 9 ай бұрын
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.
@ExplainingAndroid
@ExplainingAndroid Ай бұрын
that's a good point to make. thanks for sharing that detail
@BenHutchinson321
@BenHutchinson321 9 ай бұрын
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?
@ExplainingAndroid
@ExplainingAndroid 9 ай бұрын
are both devices on the same wifi network?
@Thalhez
@Thalhez 9 ай бұрын
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 9 ай бұрын
you need to execute that command FROM the same folder as your ADB/Fastboot files
@ibrahim_almurisi
@ibrahim_almurisi 3 ай бұрын
How? ​@@ExplainingAndroid
@lyafe1272
@lyafe1272 16 күн бұрын
Thank you! Very helpful.
@abdelghanimoumen2524
@abdelghanimoumen2524 7 ай бұрын
crazy explanation thanks
@mrqwakgames
@mrqwakgames 6 күн бұрын
When I reset my computer or device, I need to go through the whole process again. Is there a way to have it auto-reconnect or something? I thought about creating a command file to run, but the port number and connection code thing, change every time. Any thoughts? I'm on Mac by the way, but it's essentially the same process as for Windows.
@riyanwhyte8365
@riyanwhyte8365 Жыл бұрын
Thanks bro a million likes
@ExplainingAndroid
@ExplainingAndroid Жыл бұрын
you're too kind. thank you for the comment If you're able to, please consider becoming a KZbin channel member here - www.youtube.com/@ExplainingAndroid/join
@rdevries48
@rdevries48 Жыл бұрын
Thanks! That really helped me out!
@ExplainingAndroid
@ExplainingAndroid Жыл бұрын
happy to help out If you're able to, please consider becoming a KZbin channel member here - www.youtube.com/@ExplainingAndroid/join
@raydigitalsolution7336
@raydigitalsolution7336 9 ай бұрын
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 Жыл бұрын
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 KZbin channel member here - www.youtube.com/@ExplainingAndroid/join
@xcloudx01alt
@xcloudx01alt Жыл бұрын
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 Жыл бұрын
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 KZbin channel member here - www.youtube.com/@ExplainingAndroid/join
@ZaZulin
@ZaZulin Жыл бұрын
There's no -d in the command, can you tell me where is it?
@dshorts9604
@dshorts9604 Жыл бұрын
Bro did you get the solution if yes then help me
@TimberWulfIsHere
@TimberWulfIsHere 4 ай бұрын
What a useless comment
@someoneyouveneverheardof
@someoneyouveneverheardof Жыл бұрын
Thanks! Was desperately looking for this.
@ExplainingAndroid
@ExplainingAndroid Жыл бұрын
you're very welcome If you're able to, please consider becoming a KZbin channel member here - www.youtube.com/@ExplainingAndroid/join
@stereoplaces7408
@stereoplaces7408 7 ай бұрын
Hi, do I need to repeat this every time I turn off my computer?
@luckychukiye8743
@luckychukiye8743 Жыл бұрын
Hey there I plan to grab the Pixel when it comes Would this work to install Graphine/custom rom? instead of using physical cable?
@younlo2440
@younlo2440 Жыл бұрын
Hi, Can i use scrcpy after i pair and connect device
@chauhansonu104
@chauhansonu104 Жыл бұрын
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
@chuckt5930
@chuckt5930 6 ай бұрын
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.
@Techie1971
@Techie1971 8 ай бұрын
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?
@SyedWajeeha-l1o
@SyedWajeeha-l1o 4 ай бұрын
Thank you so much ,I did it finally!
@Enjurin
@Enjurin Ай бұрын
Thanks for sharing
@ExplainingAndroid
@ExplainingAndroid Ай бұрын
you're very welcome! thanks for the comment :)
@CrisVII
@CrisVII Жыл бұрын
Thanks mate, good tutorial
@ginhielkennethorteza9921
@ginhielkennethorteza9921 3 ай бұрын
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
@prathameshchaudhari3800
@prathameshchaudhari3800 7 ай бұрын
Bro any Virtual apks like Vphonegaga Virtual machine it's can Activation Problem Android 13
@ercanunsalerturk6138
@ercanunsalerturk6138 Жыл бұрын
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)
@monicemclean9346
@monicemclean9346 8 ай бұрын
I have a Note 9 and it is not showing "wireless debugging ". Please help
@شبكةالاحتراف-ر6ص
@شبكةالاحتراف-ر6ص Ай бұрын
It's compatible with only android 11 or more unfortunately
@kundalwando7683
@kundalwando7683 4 ай бұрын
Bro I use mobile data and it keeps failing saying connect to wifi. How can I fix.
@hamedayokunle2747
@hamedayokunle2747 Жыл бұрын
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 Жыл бұрын
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
@ucanh8173
@ucanh8173 Жыл бұрын
i can pair but not connect , it said "not on the same net work" but they are really are in the same network ! Help !
@mikedillan8101
@mikedillan8101 Жыл бұрын
me too
@vasea986
@vasea986 5 ай бұрын
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 5 ай бұрын
which error are you getting?
@vasea986
@vasea986 5 ай бұрын
@@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.
@samarmiled3576
@samarmiled3576 25 күн бұрын
super thank u 💫
@ExplainingAndroid
@ExplainingAndroid 23 күн бұрын
You're very welcome
@domellli
@domellli 4 ай бұрын
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 !!!
@Dragons927
@Dragons927 10 ай бұрын
No connection could be made because the target machine actively refused it. (10061) after pair change port with new
@anhvunguyen8171
@anhvunguyen8171 10 ай бұрын
Thank you a lot!
@HW-eb9yq
@HW-eb9yq 4 ай бұрын
Gracias me sirvió !! :D
@mazenhema8892
@mazenhema8892 Ай бұрын
I don't have the developer options
@ExplainingAndroid
@ExplainingAndroid Ай бұрын
Which phone do you have? Have you enabled developer mode?
@riyadulislam2220
@riyadulislam2220 7 ай бұрын
worked thanks
@mipad553
@mipad553 2 ай бұрын
How to remove paired devices
@generalknowledge6936
@generalknowledge6936 Жыл бұрын
एंड्राइड से एंड्रॉयड वायरलेस डिबंगिग मोड कैसे लगा सकते है ?
@johnwick6383
@johnwick6383 Жыл бұрын
why does mine shows sqLite......
@narpwa
@narpwa 4 ай бұрын
helpful video but why are you talking so slowly
@jameela.p6765
@jameela.p6765 2 ай бұрын
Adb not discovered
@AaryaMalik-fu2kv
@AaryaMalik-fu2kv 3 ай бұрын
Tq❤
@Coms_Productions
@Coms_Productions Жыл бұрын
pair command ain't available apparently
@care-m7k
@care-m7k 10 ай бұрын
𝗜𝘁 𝗶𝘀 𝗮𝘃𝗮𝗶𝗹𝗮𝗯𝗹𝗲
@narasinghrao3535
@narasinghrao3535 4 ай бұрын
Proto fault error
@Lazchh
@Lazchh 9 ай бұрын
malaka ti einai afto to video xriste kai panagia o bro mou o ppaparathalis de katalabe xristo!
@Qura_Interpretation
@Qura_Interpretation Жыл бұрын
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
NEVER install these programs on your PC... EVER!!!
19:26
JayzTwoCents
Рет қаралды 3,7 МЛН
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 77 МЛН
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,4 МЛН
The Tri Folding Phone Impressions!
11:18
Marques Brownlee
Рет қаралды 2,9 МЛН
Tutorial On How To Enable WIFI ADB Without PC OR PHONE
7:56
ASKBOUT_ZEN
Рет қаралды 4,1 М.
We Turned This Old Phone into a Gaming Beast !!!
16:53
Geekerwan
Рет қаралды 4,8 МЛН
Converting devices to USB Type-C
16:25
DIY Perks
Рет қаралды 7 МЛН
I bought the THINNEST Tech in the world.
17:15
Mrwhosetheboss
Рет қаралды 24 МЛН
ADB Tutorial: How to use ADB
24:24
Artur Spirin
Рет қаралды 258 М.
How to Use Brevent Without Wireless Debugging Option
5:20
Zx Tweaks
Рет қаралды 15 М.
Do NOT buy the Freedom Phone!! 🤬
11:47
Mrwhosetheboss
Рет қаралды 7 МЛН
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26