Hello

I have some issues with an android application. This applications
consists in a server and a client using C sockets via ndk.

When the server is deployed on a simulator and the client on another
simulator it works fine if I set a redirection on the server to map
client port and server port as explained here:http://
developer.android.com/guide/developing/tools/
emulator.html#redirections;
after connecting to the server via telnet I write redir add
tcp:<my_client_port>:<my_server_port> on the console of the emulator
and it's Ok.

When the server is deployed on a simulator and the client on a device
it works too if I use the adb forward tool to set redirection
properly.

Now I would like to deploy the server on a device and the client on a
Linux PC.
So with my router I set up a wifi Network including the linux PC and
the device.
When I ping the ip adress of the device from my Linux PC it works
fine, but
when I try to connect to the server via the client socket , the
connect function fails with status(perror()): connection refused. Is
it possible to do what I want to do ?! In this case how to proceed ?

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to