I need to send some UDP packets to the directed broadcast address (broadcast address of a subnet). Does anyone know how to find the directed broadcast address for each network interface using any of the JUCE classes? Are there any ways of finding out connection details for the network interfaces in JUCE?
For instance on my home network:
Adaptor IP = 192.168.0.27
Network address = 192.168.0.0
Subnet Mask = 255.255.255.0
Broadcast Address = 192.168.0.255
Depending on the network connection the directed broadcast address will be different. I am not much of a network expert so any thoughts on this would be much appreciated!