I think that you have no chance to do that. The port will be free again only if you stop the JVM. (It is because of the native libraries used for implementation.)
Simple the serversecket can be instantiated only once for the given port.
If you need the point, where all old connection must be refused you must implement it to the service logic.
Main Topics
Browse All Topics





by: yongsingPosted on 2003-04-23 at 21:43:16ID: 8386008
serverSocket.close();
serverSocket = null;