I am working on an Android application which sends a udp broadcast message to the devices on LAN. Application works well on the device and also on the emulator running on Windows. However, I couldn't get it working on Linux and Mac Android Emulators.
Since 255.255.255.255 is not working on android, I calculate the broadcast ip by using the subnet mask. (broadcast ip in my case is 192.168.1.255 where host ip is 192.168.1.88/24). But the message is never sent. Also checked with Wireshark but seems like the udp package does not get outside of the emulator.
Is there anyone who achieved to send broadcast messages on Linux Android Emulator?
Any advice will be highly appreciated.