Search code examples
javasocketsnio

Is it possible to run two NIO server sockets on a single port?


Is it possible to run two NIO Server sockets on a single port? I am using Apache MINA for server sockets. I am running a one server on port 8090 and simultaneously is it possible to run another server on the same port?


Solution

  • Not if they are both using TCP, unless they are both bound to different interfaces. What would be the point exactly? They would both just sit there accepting connections. One is as good as a thousand.