1、用windows + r 打开命令行 2、 adb devices 看是否连接到手机 3、adb shell netcfg 这个命令可以查看端口信息 4、adb shell ifconfig wlan0 wlan0就是查看的端口