Open yuan-java opened 3 months ago
Does the solution from the issue help?
REUSE_PORT solves your problem, try this code when you start server
val config = Configuration() config.setPort(port) val sockConfig = SocketConfig() sockConfig.setReuseAddress(true) config.setSocketConfig(sockConfig) val server = SocketIOServer(config)
it works, thank you!
Exception in thread "main" io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address already in use
The issue happens from 1.x to latest 2.0.11.
Thanks