我用android系统创建了一个wmware服务器,并安装了远程ADB Shell(RAS)程序。现在我可以用IP地址和5555端口连接到Android设备。所以我想要的是,用RAS关闭这个5555端口,不需要去附近的设备。我试着用下面的设置创建一个文件,但它不起作用。有人能告诉我关于这件事的情况吗?我需要关闭一个android设备的5555端口,无法靠近该设备。
o3imoua41#
我不知道你说的the command below是什么意思,但是如果你在端口5555 using上设置了一个监听器
the command below
5555 using
adb tcpip 5555
然后连接到设备使用
adb connect ip:5555
现在你已经完成了你的连接,只是想停止设备监听端口5555,你可以使用命令
adb -s ip:5555 usb
在端口5555上通过网络结束监听模式,它将远程“关闭”与您设备的连接。示例:
$ adb tcpip 5555restarting in TCP mode port: 5555$ adb connect 192.168.50.157connected to 192.168.50.157:5555$ adb -s 192.168.50.157:5555 usbrestarting in USB mode$ adb connect 192.168.50.157failed to connect to '192.168.50.157:5555': Connection refused
$ adb tcpip 5555
restarting in TCP mode port: 5555
$ adb connect 192.168.50.157
connected to 192.168.50.157:5555
$ adb -s 192.168.50.157:5555 usb
restarting in USB mode
failed to connect to '192.168.50.157:5555': Connection refused
1条答案
按热度按时间o3imoua41#
我不知道你说的
the command below
是什么意思,但是如果你在端口5555 using
上设置了一个监听器然后连接到设备使用
现在你已经完成了你的连接,只是想停止设备监听端口5555,你可以使用命令
在端口5555上通过网络结束监听模式,它将远程“关闭”与您设备的连接。
示例: