Current location - Quotes Website - Collection of slogans - How does ADB connect multiple devices?
How does ADB connect multiple devices?
1. Confirm the IP and port number of the emulator:

& ltforwarding name = " ADB port " proto = " 1 " hostip = " 127 . 0 . 0 . 1 " hostport = " 6555 " guest tip = " 10 . 0 . 2 . 15 " guest port = " 5555 "/>

2. Connect multiple simulators

& ltforwarding name = " ADB port " proto = " 1 " host port = " 30054 " guest port = " 5555 "/& gt;

At this point, use "adb device" to check the adb connection device, and both simulators are linked successfully:

How to send commands to a specific simulator/device instance?

If multiple emulator/device instances are running, you need to specify a target instance when issuing adb command. Using adb -s to realize:

For example:

This completes the purpose of using adb to link multiple devices and operate them.

Reference documents:

blogs . com/ccxniit 2004/archive/20 12/02/ 13/2349767 . html