If you stop the server, wait for a minute or two and then start, does it start okay? If so, it may have to do with the SO_REUSE policy. If you set Socket Reuse to true, you should not have this problem.
Please see this for more information: http://docs.oracle.com/javase/7/docs/api/java/net/ServerSocket.html#setReuseAddress(boolean) On Thu, Oct 24, 2013 at 8:16 AM, Martin Wunderlich <m...@censhare.de> wrote: > Hi all, > > We have noticed that the FTP server doesn't seem to release it's used > ports when the close() method is called. The result is that the server > can't be restarted, because its ports are already in use. > Is this the normal behavior and, if yes, how can I tell the FTP server to > release the ports? Should one set server == null after closing the server? > > Kind regards, > > Martin > > >