Connect to a device over TCP/IP
connectEstablish an ADB TCP/IP link to an Android device using host:port, adding it to the available device list for wireless debugging and control.
Instructions
Connect adb to a device over TCP/IP (adb connect <host>:<port>), e.g. "192.168.1.42:5555"; a successful connect adds the device to list_devices. Not device-scoped: the address selects the device, and no serial exists until the connection is established. IPv6 literals (e.g. "[::1]:5555") and a bare host without :port are not accepted; specify host:port explicitly. On Android 10+ enable Wireless debugging on the device first; on Android 11+ that also needs a one-time pairing first — call wireless_pair with the code from the Wireless debugging screen, then connect to the port shown there (the pairing port and this connect port are different).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Device TCP address as "host:port", e.g. "192.168.1.42:5555" (the port is shown in the Wireless debugging settings). |