It's simple. You just send packet to broadcast address.
i.e.
Your network: 192.168.1.0/24, then
broadcast address will be 192.168.1.255