Android Emulator - Finding Port Number
Asked Answered
M

2

13

I am running Android Studio with Microsoft's Visual Studio Emulator for Android on Windows 10. (I cannot use the default emulator due to an issue I am having with Intel HAXM)

Is anyone able to tell me an easy way of finding the port number that an emulated device is running on? I need to connect to the emulator through Telnet in order to send SMS commands.

Misbecome answered 30/9, 2015 at 10:21 Comment(1)
IMO, default port can be 5555, you can read more here. If it is not correct, pls read hereNamangan
C
26

Usually, adb devices command will tell you emulator port: port

Clackmannan answered 30/9, 2015 at 10:50 Comment(3)
This worked perfectly, I just had to navigate to my ADB install directory to use this command.Misbecome
yes, mine is configured in environment variable pathClackmannan
Works in Mac terminal too from the console in Android StudioMarchal
K
0

In case you encounter the error :

'telnet' is not recognized as an internal or external command, operable program or batch file.

Go for : https://www.baswijdenes.com/portfolio/telnet-is-not-recognized-as-an-internal-or-external-command/

Then follow the normal procedure.

Kironde answered 22/2, 2019 at 15:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.