衫裤跑路 2010-04-09 02:18 采纳率: 50%
浏览 703

如何通过 TCP 连接 ADB?

I am attempting to debug an application on a Motorola Droid, but I am having some difficulty connecting to the device via USB. My development server is a Windows 7 64-bit VM running in Hyper-V, and so I cannot connect directly via USB in the guest or from the host.

I installed a couple of different USB-over-TCP solutions, but the connection appears to have issues since the ADB monitor reports "devicemonitor failed to start monitoring" repeatedly. Is there a way to connect directly from the client on the development machine to the daemon on the device using the network instead of the USB connection or possibly another viable options?

转载于:https://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp

  • 写回答

29条回答 默认 最新

  • hurriedly% 2010-04-09 06:14
    关注

    From adb --help:

    connect <host>:<port>         - Connect to a device via TCP/IP
    

    That's a command-line option by the way.

    You should try connecting the phone to your Wi-Fi, and then get its IP address from your router. It's not going to work on the cell network.

    The port is 5554.

    评论

报告相同问题?