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

Android Studio launcher on Windows 10

Now navigate to Tools > Android > SDK Manager to load the SDK Manager.

Android Studio SDK Manager

Take note of (copy) the Android SDK Location at the top of the Default Settings screen.

Android Studio SDK Settings

Add the SDK location/platform-tools to your system path

Now right click the start button and select System to load the System Settings.

Windows 10 System Settings

Select Advanced system settings.

Windows 10 System Settings

Click on Environment Variables near the bottom of the System Properties box.

Windows 10 Environment Variables

Locate Path from the System Variables section. Single click the row and select Edit…

Windows 10 Path System Variable

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.

Windows 10 Edit System Variable 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.

OnePlus One 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).

OnePlus One Android Developer Options

Ensure that Developer options is set to On.

OnePlus One Android Developer Mode

Scroll down the Android debugging section and turn on Android debugging. Then tap ADB over network.

OnePlus One Android Debugging

Read the warning and tap OK  if you wish to continue.

OnePlus One Android ADB over network warning

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

OnePlus One Android ADB over network IP address

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

Windows 10 Android ADB Version

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:

Windows 10 Android ADB Connect

Run your project in Android Studio

Finally, open a project in Android Studio, and click Run.

Windows 10 Android Studio run app

You should see your OnePlus One as a device in the list.

Windows 10 Android Studio choose Device

Thank you for reading, I hope you found this useful!

27 replies
  1. Kris
    Kris says:

    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

    Reply
  2. Sh
    Sh says:

    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?

    Reply
  3. Ishita
    Ishita says:

    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.

    Reply
  4. kevi
    kevi says:

    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 😀

    Reply
  5. Suraj
    Suraj says:

    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)”

    Reply
  6. EthanSrya
    EthanSrya says:

    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!

    Reply
    • mark
      mark says:

      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?

      Reply
  7. Omkar
    Omkar says:

    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!!

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply to EthanSrya Cancel reply

Your email address will not be published. Required fields are marked *