I have binded a port with a socket, making it in listening mode by accept() in a java program.
I want to change that port and make
new socket bind on new port with a new thread, but after closing/unbinding that previous port.
Is there any way to deactivate/close/kill the previous port.