简体   繁体   English

ADB-使用adb CONNECT命令

[英]ADB - Using adb CONNECT command

I'm trying to make a tool that connects to your android phone wirelessly with the connect command. 我正在尝试制作一个使用connect命令无线连接到您的android手机的工具。 I know the command and how to set up the ports, the problem is that you have to enter your ip manually. 我知道命令和如何设置端口,问题是您必须手动输入IP。 If i want it to be a tool, it should automatically connect to the right ip for the user's phone. 如果我希望它成为一种工具,它应该自动连接到用户电话的正确IP。

I've tried using localhost to connect 我尝试使用localhost连接

adb connect localhost:5555

But that does not work. 但这不起作用。 If this is possible, please write a comment! 如果可能,请发表评论!

I'm sorry if i didnt explain it properly. 对不起,如果我没有正确解释。 English is not my main language. 英语不是我的主要语言。

You're not entering the command correctly. 您输入的命令不正确。 You should be connecting to the device's ip. 您应该连接到设备的IP。 adb connect [deviceIP]:5555 . adb connect [deviceIP]:5555

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM