0
I'm wondering how the OS makes sure that the clients don't get the same "random"(binding the socket by setting the port to 0) port as any other client in the network, since I want to communicate using the UDP protocol between my server and a lot of machines that's using the same local IP it would be really difficult if the clients get each others packets.
It's a good question, but its a broad topic, and not c++ related in its current form. You might get abetter answer on superuser. – Mike – 2012-11-14T21:58:39.120
Ok, but are you sure the OS wont pick the same port as any other machine in the same network? – None – 2012-11-14T22:00:16.193
Are these broadcast packets? Are you talking about communicating through a NAT device? – Harry Johnston – 2012-11-15T03:25:35.437