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
This is super. IDK why I can't connect via the Android Studio UI, but it never works for me. Your procedure works !!!
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 🙌
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.
Thanks bro a million likes
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
Thanks! That really helped me out!
happy to help out
If you're able to, please consider becoming a RUclips channel member here - www.youtube.com/@ExplainingAndroid/join
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?
are both devices on the same wifi network?
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.
Thanks sir 👍👍 God bless you.
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
crazy explanation thanks
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
you need to execute that command FROM the same folder as your ADB/Fastboot files
How? @@ExplainingAndroid
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.
Thank you so much ,I did it finally!
Thanks! Was desperately looking for this.
you're very welcome
If you're able to, please consider becoming a RUclips channel member here - www.youtube.com/@ExplainingAndroid/join
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.
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
There's no -d in the command, can you tell me where is it?
Bro did you get the solution if yes then help me
What a useless comment
Thanks mate, good tutorial
Hi,
Can i use scrcpy after i pair and connect device
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.
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
Hey there
I plan to grab the Pixel when it comes
Would this work to install Graphine/custom rom? instead of using physical cable?
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
Hi, do I need to repeat this every time I turn off my computer?
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?
Thank you a lot!
Is it possible to replace Phone recovery to twrp by using it? USB dead so.
would this work on quest 2 devices?
I don't own that device. If it's running Android though, then it is likely possible (unless Facebook removed it)
i can pair but not connect , it said "not on the same net work" but they are really are in the same network ! Help !
me too
Please can you make a video on how to install and use floating windows like (miui floating windows) on custom rom like lineage.
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
@@ExplainingAndroid thanks
worked thanks
Bro I use mobile data and it keeps failing saying connect to wifi. How can I fix.
Gracias me sirvió !! :D
Tq❤
I have a Note 9 and it is not showing "wireless debugging ". Please help
It's compatible with only android 11 or more unfortunately
Bro any Virtual apks like Vphonegaga Virtual machine it's can Activation Problem Android 13
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 !!!
How to remove paired devices
I don't have the developer options
Which phone do you have? Have you enabled developer mode?
No connection could be made because the target machine actively refused it. (10061) after pair change port with new
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!
which error are you getting?
@@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.
helpful video but why are you talking so slowly
why does mine shows sqLite......
एंड्राइड से एंड्रॉयड वायरलेस डिबंगिग मोड कैसे लगा सकते है ?
Adb not discovered
Proto fault error
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😂
pair command ain't available apparently
𝗜𝘁 𝗶𝘀 𝗮𝘃𝗮𝗶𝗹𝗮𝗯𝗹𝗲
malaka ti einai afto to video xriste kai panagia o bro mou o ppaparathalis de katalabe xristo!
Says no connection could be made because the target machine actively refused it. Any help???
Remove the "-d" in your command.
did removing the -d from the command help?
@@xcloudx01alt I have the same problem but there is no -d in the command