This might help you
http://stackoverflow.com/questions/7516018/android-localserversocket
-Mika
On Jun 7, 4:45 am, galapogos gois...@gmail.com wrote:
Thanks. Seems like 127.0.0.1 works. I also tried 0.0.0.0 and that worked
too.
I would also like to use unix domain sockets, since I really
I managed to find some sample code for a simple unix server over at
http://www.tutorialspoint.com/unix_sockets/socket_server_example.htm and
cross compiled and run it in my rooted device. However, my client app
doesn't seem to be sending anything to the server. Is there something I'm
doing
I've done this the other direction only, native to Dalvik.
Difficult to say much with what you've provided, and in principle.
At any rate, one thing of note is the server address 10.0.2.2 that you
use.
I use localhost, to remove any uncertainty about where the network
address might be known, or
so I think you want 127.0.0.1.
That'll work as well; 127.0.0.0 to 127.0.0.255 should
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group,
On Jun 6, 8:34 am, Tony Houghton h...@realh.co.uk wrote:
10.0.2.2 is a special address so that apps in an emulator can connect to
services on the host running the emulator. AIUI your service is running
on the same Android device as the client so I think you want 127.0.0.1.
Yes. Not only is
Thanks. Seems like 127.0.0.1 works. I also tried 0.0.0.0 and that worked
too.
I would also like to use unix domain sockets, since I really only want the
2 processes talking to each other rather than any external devices talking
to my device. However, when I change AF_INET to AF_UNIX in the
6 matches
Mail list logo