Using a multicast UDP network
broadcast networks are the default.
multicast networks have the
advantage that you do not need to know your IP address and, with router
support, they can be used on a WAN. Therefore simplest way to initialise
the network to make two or more processes communicate on a LAN is using
?- udp_broadcast_initialize(ip(239,0,0,2), [method(multicast)]).
?- listen(write(X), writeln(X)).
?- broadcast(udp(subnet, write(hello))).
- See also
- - IPv4 Multicast Address Space
The range 188.8.131.52 - 184.108.40.206 is reserved as Organization-Local