Is it possible for a packet to be sent to a specific socket that is listening on the same port as another socket in a different application, in UDP.
At the moment, it only picks one of the sockets to always send the packets to (the first socket listening). the second socket doesn’t receive anything.
Visualization:
I have a SERVER, and two sockets, SOCKET1 and SOCKET2.
SOCKET1 listening on 127.0.0.1:1837
SOCKET2 listening on 127.0.0.1:1837
SERVER sending packet to 127.0.0.1:1837
SOCKET1 will always receive the packets, can i specify for SOCKET2 to receive certain packets, and SOCKET1 certain others?