Can not use telnet localhost 5554 to connect Android emulator

IT-Fan picture IT-Fan · Jul 9, 2011 · Viewed 16.7k times · Source

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.

Answer

Jimmy picture Jimmy · Jun 16, 2012

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