As an example, suppose I have a 'smart' thermometer that broadcasts the current temperature as a UDP datagram every N seconds.
Now, I can write a client that listens for those messages and displays them graphically, and I can have that client running on multiple computers simultaneously. No problem so far.
But, when I try to run two instances of the client on the same Windows computer, I get errors about attempting to "bind to a port already in use".
Is this:-
- A: Just the way it is with UDP broadcasts, on all operating systems?
- B: a limitation of the Windows networking stack?
- C: or, probably a bug in the way I'm reading the datagrams?
If A or B, is there any way round it.
If C, then I'll post some code..