By the way,
Though broadcasting does work with [udpsend], it only works with x.x.x.255 (where x.x.x is the address of the local network), but it does not work with 255.255.255.255.
2011/5/10 Martin martin.peach@sympatico.ca:
I don't have any trouble with [udpsend] either. It's [netsend 1] that can't broadcast
OK I see now. [udpsend] has this in it right after the socket is created:
/* Based on zmoelnig's patch 2221504: Enable sending of broadcast messages (if hostname is a broadcast address)*/ ...
On 16/05/11 04:58 PM, matteo sisti sette wrote:
By the way,
Though broadcasting does work with [udpsend], it only works with x.x.x.255 (where x.x.x is the address of the local network), but it does not work with 255.255.255.255.
Where is it supposed to send that to? I doubt if any router would forward it to every machine on the internet.
Martin
On 05/16/2011 11:21 PM, Martin wrote:
255.255.255.255.
Where is it supposed to send that to? I doubt if any router would forward it to every machine on the internet.
No, it is supposed to broadcast to the local network, exactly like x.x.x.255, with the difference that you don't have to know x.x.x so it is more portable. It is standardised and many programs recognize it, though [udpsend] is not the only one that doesn't (TouchOSC for example doesn't either).
It works with [netsend 1] on Windows, by the way.
On 2011-05-16 17:36, Matteo Sisti Sette wrote:
On 05/16/2011 11:21 PM, Martin wrote:
255.255.255.255.
Where is it supposed to send that to? I doubt if any router would forward it to every machine on the internet.
No, it is supposed to broadcast to the local network, exactly like x.x.x.255, with the difference that you don't have to know x.x.x so it is more portable. It is standardised and many programs recognize it, though [udpsend] is not the only one that doesn't (TouchOSC for example doesn't either).
It works with [netsend 1] on Windows, by the way.
255.255.255.255 seems to work with [udpsend] on linux, at least the local machine receives packets sent to that address.
[udpsend] can also do multicasting, which isn't so wasteful of bandwidth, and can cross onto other networks if you set the hop count appropriately.
Martin