Sending to a broadcast address will fail unless the socket uses the SO_BROADCAST option. For :gen_udp, the option is spelled like:
{:ok, socket} = :gen_udp.open(8680, broadcast: true)
Sending to a broadcast address will fail unless the socket uses the SO_BROADCAST option. For :gen_udp, the option is spelled like:
{:ok, socket} = :gen_udp.open(8680, broadcast: true)