For Android 10 and Below
Step 1: Connect the Android device to the host machine using a USB cable
- ADB will start running on the host machine.
- To check if the device is connected to the host machine, execute the following ADB command on the terminal:
adb devices
Step 2: Restart ADB in TCPIP mode
- Execute the following command to restart TCPIP on a specific port:
adb tcpip 5555
Step 3: Connect to the device IP Address
- Navigate to the device's Settings → About phone/tablet → Status → IP address to find the IP address of the device.
- Once you know the IP address of the device, connect your device with the host machine using the following command:
adb connect <IP Address of phone/tablet>
Step 4: Remove the USB cable
You will now be connected to the host machine. To verify the connection, execute the following command on the terminal:
adb devices