I want to do a chat on android , where chat messages pass directly between phone and phone, without having to go through the server. The process to start a chat between a user A and B would be something like this:
User A connects to the server.
Look for user B in the server DB.
After having found it, user A starts a connection with user B.
Messages are sent between phones without going through the server.
Is it possible not to depend on a server to send the messages to the clients? If so, any ideas to carry out this process?