Bind to an ephemeral port, force it into the TIME_WAIT state, and unbind it
https://pypi.org/project/ephemeral-port-reserve/