I have some code that listens to a specific TCP port. However, when I stop this code and restart it quickly afterwards, I see the error ERROR: could not bind to socket on 0.0.0.0:7700If I wait a minute or so, suddenly this port is 'free' and the code runs again. My question: Is there a way to force this particular port 'free'? To be able to start my code right away, without waiting a minute or so?
How to 'free' a TCP port?
linux;tcp;socket