Broadcast UDP message

Lucas Robsahm lucas.robsahm@REDACTED
Wed Jun 10 16:53:26 CEST 2009


I'm trying to send a broadcast message to but I can't
get it to work.
My IP-Address is and it's ok to send UDP message to but I need to send it to

{ok, Socket} = gen_udp:open(0, [binary, {broadcast, true}]),
ok = gen_udp:send(Socket, {255, 255, 255, 255}, 68, Message).

The result of this is badmatch, {error, enetunreach}.

What's wrong? 
How can i broadcast UDP messages?


More information about the erlang-questions mailing list