![]() But that's just a series of unicast transmissions. I can simulate multicast by having my program have a list of IP addresses, and then a for-next loop that causes my program to send to each address in the list. The one thing I can NOT do is send to send a UDP packet addressed to multiple specific computers (IP addresses) without sending them to ALL computers on the network. The 255 number is the magic number for broadcast, meaning ALL computers on the network will be able to receive the transmission. If your network is all computers from 192.168.0.2 to 192.168.0.254 (with 192.168.0.1 being the router and 192.168.0.0 representing the network itself) then you simply set the IP address you are sending to to 192.168.0.255. ![]() Just set the protocol for UDP, bind the port you want to use listen for data on, set the port you want to send data to, and send the data.Įven broadcast is easy you just set the port you are sending to, to the highest port in your network.
0 Comments
Leave a Reply. |