There are two ways (at least) for a TCP connection to be rejected:

(1) low memory: a temporary condition, seems unlikely, but the solution is to wait a small amount, and then try again.

(2) Player software not currently listen()ing on that port.. maybe it is slow to return to listen() state after a previous connection is closed.. ? Same solution, though..

Cheers