Re: Address already in use when restarting server

2016-10-19 Thread Jonathan Valliere
If a remote tcp connection is open to that port then TCP will always say Address already in use. Set the Reuse Address flag and it will work fine. Sent from my iPhone > On Oct 19, 2016, at 5:58 AM, Emmanuel Lécharny wrote: > > > >> Le 19/10/16 à 11:27, Michał Gałuszka

Address already in use when restarting server

2016-10-19 Thread Michał Gałuszka
Dear MINA users. I’m using MINA server acceptor in my Java application that needs to be restarted from time to time. When I stop and start that application „too fast” I always get an exception when starting and trying to bind: java.io.IOException: Error while binding on 0.0.0.0/0.0.0.0:8245

Re: Address already in use when restarting server

2016-10-19 Thread Emmanuel Lécharny
Le 19/10/16 à 11:27, Michał Gałuszka a écrit : > Dear MINA users. > > I’m using MINA server acceptor in my Java application that needs to be > restarted from time to time. > When I stop and start that application „too fast” I always get an exception > when starting and trying to bind: > >