[android-developers] Re: Server/Client in different machines

2009-04-07 Thread Ask
Can you send the exception you are getting or some code snippets, it can be some io exception... On Apr 7, 4:58 pm, Lillian Brandão wrote: > I've already done at the server machines: > redir add tcp:7000:7000. > > -- > Lillian Brandão > > > > On Tue, Apr 7, 2009 at 8:47 AM, Ask wrote: > > > Ha

[android-developers] Re: Server/Client in different machines

2009-04-07 Thread Ask
Have you done port forwarding at server machine?? Any message which is coming to the server should be redirected towards the emulator port : 7000 On Apr 7, 4:35 pm, Lillian Brandão wrote: > Hi all, > > I have an application client/server and I want to install this application > in differente ma

[android-developers] Re: Server/Client in different machines

2009-04-07 Thread Lillian Brandão
I've already done at the server machines: redir add tcp:7000:7000. -- Lillian Brandão On Tue, Apr 7, 2009 at 8:47 AM, Ask wrote: > > Have you done port forwarding at server machine?? > > Any message which is coming to the server should be redirected towards > the emulator port : 7000 > > On Ap

[android-developers] Re: Server/Client in different machines

2009-04-26 Thread Rande Arievilo Moreira
Hi Ask, I'm developing the same application with Lillian. After debugging a little bit, I found out that we're receiving the following exception: java.net.ConnectException: 192.168.0.173/192.168.0.173:7000 - Connection refused 192.168.0.173 is the IP of my machine (the server) in the Local

[android-developers] Re: Server/Client in different machines

2009-07-16 Thread Zeeshan Muhammad
i have the similar problem, my main java class listening a server socket at port 8088 now when my client (android) try to connect a socket it refused the conenction InetAddress serverAddr = InetAddress.getByName("127.0.0.1"); Socket socket = new Socket(serverAddr , 8088 ); java.net.Connect

[android-developers] Re: Server/Client in different machines

2009-07-16 Thread Yusuf T. Mobile
"Connection refused" is a standard TCP error, not Android-specific. So see if you can telnet into the same IP address and port, using a PC on the same subnet as your phone, if possible. For example, if you can put both the PC and phone are on the same WiFi network. Yusuf Saib Android ·T· · ·Mobi

[android-developers] Re: Server/Client in different machines

2009-07-16 Thread Zeeshan Muhammad
thanks for the reply Yusuf, i am able to connect socket through this ip 10.0.2.2 in emulator as Grob suggested in a different thread but when i check it on real device it gives me "no route to host" exception. my android device is attached to the same pc my server program is running on. i dont k

[android-developers] Re: Server/Client in different machines

2009-07-17 Thread Zeeshan Muhammad
thanks jason, i am able to connect but when i try to read data from inputStream at server side i got exception java.net.SocketException: Connection reset client: Socket socket = new Socket(SERVER_IP , 8626 ); os = new DataOutputStream(socket.getOutputStream()); os.writeBytes("HELO\n"); serv

[android-developers] Re: Server/Client in different machines

2009-07-17 Thread Zeeshan Muhammad
thanks jason, i am able to connect but when i try to read data from inputStream at server side i got exception java.net.SocketException: Connection reset client: Socket socket = new Socket(SERVER_IP , 8626 ); os = new DataOutputStream(socket.getOutputStream()); os.writeBytes("HELO\n"); serv

[android-developers] Re: Server/Client in different machines

2009-07-17 Thread Jason Proctor
connection reset usually means that the connection was closed unexpectedly during a read operation. in the client, are you waiting for the server's response? as always, i recommend getting stuff like this to work as a little command line tool before deploying to the phone. the write/debug cy