Is there a way to use Unix Domain sockets with Java NIO? I want to use NIO so that I can use Selectors on it in a single thread. I had a look at junixsocket but it only seems to support normal Sockets not NIO channels that support selectors. Answer You can use the project jnr-unixsocket,(https://github.com/jnr/jnr-unixsocket) which is the far