Unix domain sockets between host and emulator I am trying get Android and my Linux host talk to each other on Unix domain sockets.

I have my server on the host while the client is part of a library that emulator's software stack will make use of. The Android stack is not able to find the socket stream file that I have specified which happens to be on the host's filesystem.

Now, before you say "port forward", I have tried that and this is what I have tried based on my understanding of the abd forward command. I have not had success in this. Could you guys please point out the mistake and help me?

adb forward localfilesystem:/tmp/android_socket localfilesystem:android_socket


The path used in the host is /tmp/android_socket and that in the Android emulator is "android_socket"
Unix domain sockets are meant to be used for interprocess communication on one host, not for inter host communication.
Sockets that are located on the filesystem like you describe are not unix sockets, but named pipes, and are also limited for use on the same host.

For inter-host communication, you need to use network sockets of some kind.