[android-beginners] Re: Problem with socket connection to emulator console

2008-04-10 Thread [EMAIL PROTECTED]
I didn't say it, but yes I already have the emulator running before I run the connection test. I haven't installed any Activity/Service yet for handling the SMS message, but since the emulator is running, I would expect the socket connection to be made. --Ken On Apr 9, 10:43 pm, John P. [EMAIL

[android-beginners] Re: Problem with socket connection to emulator console

2008-04-10 Thread [EMAIL PROTECTED]
Well, ok, some slightly odd behavior (should have checked this first): $ telnet localhost 5554 Trying ::1... telnet: connect to address ::1: Connection refused Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'.

[android-beginners] Re: Problem with socket connection to emulator console

2008-04-10 Thread Digit
it's because localhost is resolved to several addresses, i.e. ::1 is the IPv6 equivalent of 127.0.0.1 the emulator only listens on 127.0.0.1 (IPv4-only address). try telnet 127.0.0.1 5554 instead then On Thu, Apr 10, 2008 at 3:24 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Well, ok, some

[android-beginners] Re: Problem with socket connection to emulator console

2008-04-10 Thread [EMAIL PROTECTED]
Yes, I realized that after the last post. Revising the test to replace the lh= ... line by lh = InetAddress.getByName(localhost); produced an immediate connection. Sorry for the thrashing, Many thanks, Ken Bowen On Apr 10, 9:44 am, Digit [EMAIL PROTECTED] wrote: it's because localhost is