I have an application which uses TCP port 16969. It sometimes requires a quick software kernel reboot on the fly. But if I launch it too fast, I am locked with
Have you tried using tcpkill?
example:
tcpkill -i eth0 port 21