Search code examples
androidandroid-emulatortelnet

Telnetting into Emulator using Android Studio vs Telnetting into Telnet Server running inside Emulator


I have been learning to code in Android (once again), using Coursera. Our instructor has asked us to telnet into our emulator using telnet localhost 5555 through Android Studio terminal, which works fine for me as well, and I can use all the commands like,

network speed edge
network speed full
power capacity 10

Which is totally ok. But after that, what I did is, I installed Telnet Server app in my Emulator through an apk file, created a telnet server in my Emulator, Connected to the telnet server through my host pc, and then tried executing the same commands as above. But the above commands i.e power capacity 10, network speed full doesn't work this time.

I do not understand what is the difference between a telnet connection when connected through Android Studio terminal, and when connecting to the telnet server created inside the Emulator.

Why can't I run the same commands when I connect to my emulator's telnet server ?


Solution

  • The telnet connection to the emulator over port 5555 is a special type of connection where you can issue commands that affect the operation of the emulator itself.

    The Telnet Server app doesn't have this kind of special connection. Instead, it's just giving you access to a linux command shell that will execute other linux command line programs that you issue, similar to the command line interface on your computer.

    Basically, they are two very different things and not related at all except for their use of the telnet protocol to send text back and forth.