I have no idea at this point why the connection would fail.
I’m going to add logging code to the socket connection plugin and the java library, which will hopefully give us a better idea of what is going on.
I’ll let you know when the socket connection plugin and the java library have been updated.
(It will probably take a week or two, because it takes a long time before a new plugin version becomes live.)