Hi Dear,
i got the same problem when i run my code below:
InetAddress serverAddr = InetAddress.getByName(127.0.0.1);
Socket socket = new Socket(serverAddr , 8088 );
i changed the port but same result.
anybody help plz
On Sat, Apr 18, 2009 at 1:25 AM, Hunter Peress hunt...@gmail.com wrote:
127.0.0.1 is the device, or the emulator. So as long as you don't have
a server listening on that port on the emulator/device itself you
won't be able to connect. If you want to connect to to a server
running on the host, then you'll have to connect to 10.0.2.2 (or
something like that)
If
thanks for reply Grob,
i tried it on both emulator and on my real device (connected to my pc) but i
got the same exception both time
java.net.ConnectException: 127.0.0.1:8088 http://127.0.0.1:8000/ -
Connection refused
i changed the connection to
Socket socket = new Socket(10.0.2.2 , 8088
i am able to connect on emulator but no route to host exception when i try
to connect on real device
On Thu, Jul 16, 2009 at 3:16 PM, Zeeshan Muhammad genx...@gmail.com wrote:
thanks for reply Grob,
i tried it on both emulator and on my real device (connected to my pc) but
i got the same
4 matches
Mail list logo