Chrome-remote-interface: Connect to mobail on USB

Created on 28 Aug 2016  路  6Comments  路  Source: cyrus-and/chrome-remote-interface

Hello, how can I connect to the chrome in the phone via usb or emulator android on hyper-v?

question

Most helpful comment

I've written a Node module that can help with this, https://github.com/auchenberg/adb-devtools-devices

All 6 comments

For both real devices via USB and emulators via AVD Manager you need to forward the port 9222:

adb forward tcp:9222 localabstract:chrome_devtools_remote

Then use localhost:9222 as usual.

Possible to use a multi connection to two or more virtual machines?

You need one instance for each virtual machine.

i run two emulator

after command
"adb forward tcp:9222 localabstract:chrome_devtools_remote"

message: "error: more then one device/emulator"

That happens because you need to specify the target device with the -s <specific device> option. From adb help:

directs command to the device or emulator with the given serial number or qualifier. Overrides ANDROID_SERIAL environment variable.

  1. List your devices:

$ adb devices List of devices attached emulator-5556 device emulator-5554 device

  1. Issue a command to each of them:

$ adb -s emulator-5556 forward tcp:9222 localabstract:chrome_devtools_remote $ adb -s emulator-5554 forward tcp:9222 localabstract:chrome_devtools_remote

I've written a Node module that can help with this, https://github.com/auchenberg/adb-devtools-devices

Was this page helpful?
0 / 5 - 0 ratings