Using Android Debug Bridge (ADB) via TCP/IP

On the device running Android (using the serial console):

netcfg eth0 up                 #get your eth network up
netcfg eth0 dhcp                 #get your dhcp ip for eth0 intergace
ifconfig eth0                       #confirm your board IP 
echo 0>/sys/class/android_usb/android0/enable  #enable adb via IP
stop adbd
setprop service.adb.tcp.port 6565
start adbd

On your host machine (assuming the its reachable via tcpip):

export ADBHOST=<board's IP>
sudo android-sdk-linux_x86/platform-tools/adb start-server
android-sdk-linux_x86/platform-tools/adb connect <board's IP>:6565
android-sdk-linux_x86/platform-tools/adb shell

Note: default adb port is 5555, and using another value is trivial security measure. However, adb access at all, and networked access foremostly, is utterly insecure and intended to be used only on development-only devices in a physically and networkedly controlled environment. Never enable those on a production-use device or on a device which may contain sensitive data. The same goes for unauthenticated root access.


Platform/Android/SetupAdbOverTcp (last modified 2013-08-12 07:17:29)