Skip to content

java.net.BindException: Address already in use

Pablo J. Rogina edited this page Oct 31, 2017 · 1 revision

If you encounter such error when your netty-socketio server stops and starts, you need to set the reuseAddress option:

Configuration configuration = new Configuration();
SocketConfig socketConfig = configuration.getSocketConfig();
socketConfig.setReuseAddress(true);