C
C
cyberorg2013-08-30 19:51:19
Android
cyberorg, 2013-08-30 19:51:19

Debugging an Android app over the network?

Good Friday evening, Habr!
My question is: how can I debug an application over TCP/IP?
The initial data are as follows:
There is a working computer / laptop in Russia on it Win 7
There is a Nexus 4 with USB Debugging enabled, it is also
possible to connect Nexus4 to a computer via USB in Russia. All drivers are there and there is a device in adb devices.
There is a good server with Windows Server 2008 R2 in Germany, which can be connected via RDP with USB port forwarding. On this server is an IDE in which development is underway.
But after forwarding, the server sees that Nexus 4 is connected, but cannot install the driver. I even tried to take drivers from Windows 7 - it didn't work.
An idea came up.
On the same server, simultaneously raise Windows 7 (which is guaranteed to have drivers). Throw Nexus there.
On a server with Server 2008, connect to ADB 7ki (since they are on the same local network).
The problem is that ADB listens only to localhost and it's problematic to connect to it from another computer (or I don't know how yet).
Question: how to make the IDE able to work with a Nexus connected via a forwarded USB?
PS Just in case, the IDE is Intellij IDEA

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis, 2013-08-30
@WolFman

Try USB Redirector or USB over Network I used to flash the phone via the Internet.

P
palmut, 2013-08-30
@palmut

Isn't it better to start debugging over TCP? Let's say if Nexus 4 is rooted and put ADB over WIFI Widget , while the device's WiFi will have a real IP (well, or throw it on the router to it on a given port), run adb connect <host>: <port> on the computer. Inside the same WiFi network, this works great, in theory, the packets are the same everywhere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question