I have a multi threaded python application communicating with a separate service trough UDP.
Each thread is similar, at some point need a response from the separate service.
So practically for each thread I create e new client socket and start to communicate. The problem is on the server side each UDP packet seems to come from the same reception port thus this create problem on the client side on who receives whose message.
How can I enforce the socket to use a different ephemeral reception port for each instance in the same program different threads?
Thanks!