Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use telnet in Windows with the Android Emulator?

I've tried to run the command telnet localhost 5554 in the command line, but I didn't succeed. It kept saying telnet is recognized as an internal or external command....

The directory is set to where my Android SDK tools are installed (C:\Program Files\Android\android-sdk\tools). Maybe this path is not correct but I don't know how to fix this. I have changed the path to other but no success.

like image 924
Laura Avatar asked Dec 02 '11 14:12

Laura


People also ask

Can I telnet to Android?

Open the Google Play Store from your Android device. Search for telnet ssh client. Locate and tap the entry for Telnet / SSH Simple Client (by Advanced Planning Corp) Tap Install.

Does cmd support telnet?

Launch the Command Prompt by typing Command Prompt into the search box on the menu bar and clicking the app returned. Alternatively, you can also type Windows Key + R to open the Run command dialog. Type cmd and hit the Enter key. Type telnet and hit Enter to access the Telnet Client.


7 Answers

If you're on Windows 7, telnet is not enabled by default. This site has step-by-step instructions for turning it on. Once you do that, you should be able to telnet into the emulator.

like image 181
Chris Avatar answered Oct 05 '22 20:10

Chris


If you working in windows 7 telnet is not set by default. You must enable it from Programs and Features from Control Panel.

1- Turn Windows Feature on or off

2- check on Telnet Client / Telnet Server // telnet client only is OK

3- OK // feature is on now

enter image description here

To test it's working from command line write telnet

To connect to your emulator just write this command

-->> telnet 127.0.0.1 5554   

127.0.0.1 localhost

5554 port number in our case its 5554

enter image description here

You can run some commands in your emulator:

control power, network, simulate call, message ....etc

Example: sms send 1254 this is message

This command will send message to your emulator from this number 1254 with message this is message

Update

easy way to get all devices connected IP with port to connect

just write in terminal this command

adb devices
like image 40
Mina Fawzy Avatar answered Oct 05 '22 20:10

Mina Fawzy


You need to turn on the Telnet service. Alternatively, you can also use the Putty ssh client - http://www.putty.org/ to telnet to localhost 5554

like image 29
Vino Avatar answered Oct 05 '22 18:10

Vino


On Windows 7 Telnet Client and Server is be disabled by default. If you want to enable it, you can do so using the Command Prompt or via the Control Panel.

To do so:

Click on Start and under search type in CMD
Right click on CMD and click on Run as administrator
Enter the Administrator password if it prompt
Then type in pkgmgr /iu:”TelnetClient” to Enable the Client
And pkgmgr /iu:”TelnetServer” to Enable the Server
like image 35
user3462942 Avatar answered Oct 05 '22 18:10

user3462942


You don't have Telnet client in your windows, install it, then you can connect.

http://technet.microsoft.com/en-us/library/cc771275%28WS.10%29.aspx

like image 29
Pete Houston Avatar answered Oct 05 '22 18:10

Pete Houston


The service Tlntsvr.exe, responsible for Telnet, was disabled at my machine. I Just put it to "manual start" and then started it.

like image 42
user299630 Avatar answered Oct 05 '22 19:10

user299630


After enabling the Telnet Client, it didn't work for me right on the Command Prompt. What I had to do:

  1. Open the telnet prompt (Search programs, type "telnet.exe", or just "telnet" in C:\WINDOWS\system32).
  2. On the telnet prompt, type "o localhost 5554".
like image 21
Fabrício Monteiro Avatar answered Oct 05 '22 20:10

Fabrício Monteiro