OnePlus One ADB Access over Network on Windows 10
So I recently upgraded to Windows 10 and also upgrade my OnePlus One to CyanogenMode 12 (Lollipop). Decided I would do a bit of Android development, so I’ve spent most of the weekend trying to locate some ADB drivers which work with my computer and phone. So far I found nothing.
After trying a number of different versions of the Samsung drivers, following countless guides and shaking my phone very hard, I noticed an option on the phones Developer options called ADB over network. My first thoughts were “this was too good to be true”, but lo and behold, after some investigation it’s far easier than locating and installing drivers which allow me to connect my OnePlus One to my Windows machine for ADB debugging (although, brain surgery is probably easier than that).
So here is how you do it.
Add ADB to your system path
The first step is to add the adb.exe file to your Windows system path. (Don’t worry, it sounds more complicated than it is).
Get the SDK location
First, launch Android Studio. (If you don’t already have it, download it from here).
Now navigate to Tools > Android > SDK Manager to load the SDK Manager.
Take note of (copy) the Android SDK Location at the top of the Default Settings screen.
Add the SDK location/platform-tools to your system path
Now right click the start button and select System to load the System Settings.
Select Advanced system settings.
Click on Environment Variables near the bottom of the System Properties box.
Locate Path from the System Variables section. Single click the row and select Edit…
Be careful not to change any of the other text. Add a semicolon (;) to the end of the line, and paste the SDK path you copied earlier followed by “/platform-tools”. Then click OK on the Edit System Variable screen, Environment Variables screen, System Properties screen and close the System screen.
Enable ADB over network on your OnePlus One
The next step is to enable ADB over network. Before you continue, make sure your Android device and computer are connected to the same network.
First, open the phones Settings.
Scroll down the settings and select Developer options. (Note: if you don’t see this option, then select About Phone and then tab Build number repeatedly to activate developer mode).
Ensure that Developer options is set to On.
Scroll down the Android debugging section and turn on Android debugging. Then tap ADB over network.
Read the warning and tap OK if you wish to continue.
ADB over network should now be enabled. Take note of the IP address and port that appears in settings (you will need this in the next step).
Connect ADB to the device over the network
Now open Command Prompt (I use cmder in the screenshots below, but it’s the same as windows Command Prompt) and type the following command to check you added ADB to your system path correctly:
adb version
If you followed the Add ADB to your system path section correctly the output will look something like this
Now type the following command replacing <ip_address> with the IP and port number noted down previously:
adb connect <ip-address>
If done correctly, the output will look something like this:
Run your project in Android Studio
Finally, open a project in Android Studio, and click Run.
You should see your OnePlus One as a device in the list.
Thank you for reading, I hope you found this useful!
This is awesome man. Thank you so much 🙂
Works perfectly!! Thanks bro
This is great! Thanks <3
I on the last step. I got this message: Unable to connect
Hi Ro. Try run ‘abd kill-server”, restart the phone and try again.
Thanks. And thanks for posting this.
i try with ‘abd kill-server’, and restarted… still not connecting :(… can u tell the driver software for windows 10 pls
Hello,
Try turning off firewall or IPS, worked for me when I turned my firewall off it got connected
Works perferct, much easier than finding drivers indeed, 1000x thanks !!
THANK YOU SO MUCH FOR THIS. I APPERCIATE THIS WORK SO MUCH.
IVE spent countless hours figuring this out and this guide finally saved me
Thank you SO MUCH!
No problem! Thank you for reading my post and taking time to comment 🙂
Hey when I get to edit the environment variables there is no path, just the TEMP & TMP. Can I create a new one with just the sdk path? Cheers
I accidentally deleted the whole path line can I get the default from somebody?
This is great and easy, but can somebody help me with this: unable to connect to 192.168.1.102:5555: cannot connect to 192.168.1.102:5555: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)
I got this after “adb connect”.
Thanks! 🙂
Should phone be rooted?
You save my life, thank you a lot !!! I’ve been searching for something to actualy work for hours!!
unable to connect to 0.0.0.0:5555: cannot connect to 0.0.0.0:5555: the requested address is not valid in its context. (10049)
came after ‘adb connect’ before this I have successfully connect 2 to 3 times.
i can’t find PATH in environment variables, just the TEMP & TMP. any solution for me? thanks 🙂
perfect, worked like a charm! i was pulling my hair out all night trying to get drivers to work on Win7 until i found this 😀
Hi,
After follow your steps, whenever I open Android Studio, I cannot open http://www.Google.com.
is this true? Anybody got such problem?
After I wrote- adb connect 0.0.0.0:5555
it showed-“unable to connect to 0.0.0.0:5555: cannot connect to 0.0.0.0:5555: the requested address is not valid in its context. (10049)”
i did all the steps above but i cant find any active devices in the android device monitor
In win 10 can somebody help me with this: unable to connect to 192.168.1.**:5555: cannot connect to 192.168.1.**:5555: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)
I got this after “adb connect”.
Thanks!
thanks a lot ,i was really tired of searching for the proper solutions but at last found this……………
Do i need to do it each time ??
is there a way to do this on oneplus 3?
Because there is no option for turning on debugging via network (only usb)
That is a good question. I don’t have a OnePlus 3, so I’m not sure. However, I’d be surprised if they took this option out… Is debugger mode definitely enabled?
This was great post, still useful. You sir are saviour :P.
Thank you.
For those concerned with IP ‘0.0.0.0:5555’, you need to connect the pc and mobile to same wifi network. Then you would get proper IP.
cheers!!