Like here: Automatic authentication for Android WiFi Direct I want to create a mobile ad-hoc Wifi network with Android devices.
But unlike the linked question above I want
You can do so using Java NIO (Non Blocking IO)
There is also an option in Wifi Direct to create group, using that group, group own will be used as a server and can broadcast message.
Using multiple clients and a Server, all devices can communicate with each other by utilizing group.