Connecting to litecoin node with RPC JSON client in Java

litecoin

#1

Hey,

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: java.net.SocketException: Unexpected end of file from server

My litecoin.conf file:
rpcuser= MY_USER
rpcpassword=MY_PASSWORD

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?
TNX!


#2

Try with the 9332 port.