Debug Android applications over the network?

Good Friday evening, Habr!


I have a question: how do I debug my app via TCP/IP?


Initial data such:


There is a working computer/laptop in Russia it is Win 7

Have a Nexus 4 with USB Debugging enabled, it is also in Russia


Nexus4 is possible to connect to a computer via USB. All drivers have in "adb devices" the device has.


Is there a good server with Windows Server 2008 R2 in Germany, which can be picked up at the RDP with the passthrough USB port. On this server is IDE which is under development.

But after forwarding the server sees that the connected Nexus 4, and the driver can not deliver. I even tried to take drivers from Windows 7 — did not happen.


The idea arose.

On the same server in parallel to raise Windows 7 (on which the driver is guaranteed). There push Nexus.

On the server Server 2008 to connect to ADB 7s (as they are in the same local network).


The problem is that ADB listens only to localhost and connect to it from another computer problematic (or I don't know how).


Question: how to make IDE could work with Nexus'ω prosrochennoy via USB?


P. S. just In case, IDE — Intellij IDEA
October 3rd 19 at 04:09
2 answers
October 3rd 19 at 04:11
Try USB Redirector or USB over Network I used the phone was flashed through the Internet.
October 3rd 19 at 04:13
But TCP isn't it better to start debugging? For example, if the Nexus 4 make and put ADB over WIFI Widget, with Wi-Fi in Davis will have real IP (or to shoot on the router for it to the specified port) on the PC to run adb connect :. Within the same WiFi network is working perfectly, the idea packages is the same everywhere.

Find more questions by tags Android