I thought that using SocketOptionName.ReuseAddress , I can reuse a port that is in TIME_WAIT state. But I tried to experiment with him, and it seems that this has no effect.
If I check sockets using netstat and it shows that the socket is in TIME_WAIT state and I start the client again, I get an exception:
Only one use of each socket address is allowed (protocol / network address / port). 172.16.16.16:12345
I can do nothing of this. Please can you clarify what suits SocketOptionName.ReuseAddress?
source share