Connecting to litecoin node with RPC JSON client in Java


I am trying to connect to my node on a remote machine trough JSON RPC.

I am writing the code in Java and using the ‘JavaBitcoindRpcClient’ dependency to connect.

For some reason I get thrown out after connecting to the server for
Caused by: Unexpected end of file from server

My litecoin.conf file:
rpcuser= MY_USER

When trying to access port 9333 I get various output in the debug.log:
Mostly network is unreachable (101)

Does some one knows what is the problem?

Try with the 9332 port.