How to use telnet in Windows with the Android Emulator?
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
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
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
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
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.