View the device port number created by the night god simulator

1. Summary:

    Because you need to use adb to connect to the night god simulator, the default port number of the first simulator automatically created by the night god simulator is 62001. I found most of them on the Internet and only talked about the default port number of the first machine. In order to facilitate subsequent use, this article will describe how to view the machine port number created by the Night God Simulator.

Second, check the steps

1. After creating a new Android simulation machine, enter [Yeshen installation directory/bin/BignoxVMS], where the data of all the simulation machines are stored, select the data of the machine you just created (according to the number or creation time) Folder entry
Insert picture description here

2. After entering, find a file with the suffix [.vbox-prev] and edit the file. Note: These files will only appear after the machine is created, otherwise there will only be one file.
Insert picture description here
3. Find the line [guestport="5555"]. The value of the [hostport] field in front is the port used when adb is connected. number.
Insert picture description here

4. Finally, use the port we checked to connect. You can see that the connection is successful
Insert picture description here

5. If there is an inconsistent version of the connection, an error will be reported: adb server version (36) doesn't match this client (41); killing....

You can refer to this blog to replace the adb version
https://blog.csdn.net/leon1741/article/details/54896861

Insert picture description here


    Follow-up: If there are other emulator viewing ports, welcome to share in the comment section

Guess you like

Origin blog.csdn.net/weixin_43161762/article/details/113757741