Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not use telnet localhost 5554 to connect Android emulator

I can't use the command telnet localhost 5554 to connect Android emulator. Always get this error:

Connecting To localhost...Could not open connection to the host, on port 5554: Connect failed

I even have all ports set to allow connections in both the inbound and outbound rules in Windows Firewall.

I am running Windows 7.

like image 705
IT-Fan Avatar asked Jul 09 '11 20:07

IT-Fan


3 Answers

I've encountered this issue a few times, I'm not sure how the the emulator deals with addresses, but localhost just doesn't work for me.

Changing the connection command to telnet 127.0.0.1 5554 enabled me to connect, so if localhost doesn't work, try 127.0.0.1

like image 90
Jimmy Avatar answered Oct 19 '22 02:10

Jimmy


Try using the complete command inside telnet:

Microsoft Telnet> open localhost 5554

That should work, sometimes we forget to write the entire command

like image 23
fhellmund Avatar answered Oct 19 '22 03:10

fhellmund


Use the netstat tool to verify the application is listening on that port. I'm not familiar with netstat on windows, but it seems you'll need -a -n and optionally the -o options.

If you see the process listening, keep looking at the firewall. If you don't see one, figure out why it's not running.

like image 35
Szocske Avatar answered Oct 19 '22 02:10

Szocske