1. Are you ready for the Galaxy S20? Here is everything we know so far!

Create virtual USB tether to ADB over WAN with no initial USB connection

Discussion in 'Android Development' started by Deblobman, May 25, 2017.

  1. Deblobman

    Deblobman Lurker
    Thread Starter

    Just like the title, I just need to be able to connect to a adb server on a computer on another network, without the initial USB tether to start the server. Thanks!
     



    1. Download the Forums for Android™ app!


      Download

       
  2. Deleted User

    Deleted User Guest

  3. Deblobman

    Deblobman Lurker
    Thread Starter

  4. Deleted User

    Deleted User Guest

    It will work to any subnet which is routable from your current local subnet.
     
  5. Deblobman

    Deblobman Lurker
    Thread Starter

    I recieved this error: " No connection could be made because the target machine actively refused it. (10061) "
     
  6. Deleted User

    Deleted User Guest

    Have you enabled USB debugging on your device?
     
  7. Deblobman

    Deblobman Lurker
    Thread Starter

    yes
     
  8. Deleted User

    Deleted User Guest

    So on your computer, did you do the following, as described in the SO question?

    When connected via USB: adb tcpip 5555. Disconnect USB, view phone IP from Settings > About Phone > Status. Now adb connect 192.168.x.x
     
  9. Deblobman

    Deblobman Lurker
    Thread Starter

    Thats the problem. I need to get away from the initial USB. I need to have a server pc on a different network, and fake a usb connection from a phone on another network. I cannot have the initial USB connection to create the initial connection.
     
  10. Deleted User

    Deleted User Guest

  11. Deblobman

    Deblobman Lurker
    Thread Starter

  12. Deblobman

    Deblobman Lurker
    Thread Starter

  13. bayk

    bayk Member

    Even if your device on the different network, you should be fine with 'adb tcpip 5555'
    This command set the target device to listen for a TCP/IP connection on port 5555. You don't have to run it from the PC that you are using to connect to the device.
    Seems like it is the the only options if your device non rooted.
    [​IMG]
     
    sweetndreemy73 likes this.
Loading...
Similar Threads - Create virtual USB
  1. wseng92
    Replies:
    7
    Views:
    521
  2. tiho_bg
    Replies:
    1
    Views:
    588
  3. tiho_bg
    Replies:
    1
    Views:
    402
  4. TiagoPT
    Replies:
    1
    Views:
    291
  5. Viktram Sai Simha
    Replies:
    0
    Views:
    532
  6. July Hoang
    Replies:
    15
    Views:
    932
  7. CCCKP
    Replies:
    0
    Views:
    664
  8. Anmol hira
    Replies:
    1
    Views:
    854
  9. mdsousa
    Replies:
    0
    Views:
    3,150
  10. mdsousa
    Replies:
    3
    Views:
    854

Share This Page

Loading...