1、
adb shell netcfg
guoqifa@guoqifa:~$ adb shell netcfg
wlan0 UP 172.29.107.21/21 0x00001043 00:08:22:7e:a1:fe
tunl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
p2p0 UP 0.0.0.0/0 0x00001003 02:08:22:7e:a1:fe
ifb1 DOWN 0.0.0.0/0 0x00000082 a6:66:ac:ac:06:05
ifb0 DOWN 0.0.0.0/0 0x00000082 1e:1a:54:6c:0c:6c
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
ccmni1 DOWN 0.0.0.0/0 0x00000080 56:8e:59:12:7a:02
ccmni0 DOWN 0.0.0.0/0 0x00000080 f2:19:3e:86:d5:6e
ccmni2 DOWN 0.0.0.0/0 0x00000080 7e:33:e6:f8:16:f1
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
2、adb tcpip num,
指定一个端口号,端口号随意指定
guoqifa@guoqifa:~$ adb tcpip 5555
guoqifa@guoqifa:~$ adb tcpip 5555
restarting in TCP mode port: 5555
3、adb connect pid:num,远程连接
guoqifa@guoqifa:~$ adb connect 172.29.107.21:5555
connected to 172.29.107.21:5555
4、adb devices,查看连接成功
guoqifa@guoqifa:~$ adb devices
List of devices attached
0123456789ABCDEF device
172.29.107.21:5555 device
5、可以愉快的远程使用adb命令了,比如adb logcat等