要获取Android手机的IP地址,必须先保证你的Android手机已经连接到无线网络。 先执行命令"adb shell netcfg" 再执行命令 “adb shell ifconfig rmnet0”