I want to make a chat in android , where the chat messages pass directly between phone and phone, without the need to go through the server. The process to start a chat between user A and B would be something like this:
User A connects to the server.
Search for user B in the server database.
Having found it, user A initiates 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 perform this process?