1

Im trying to connect to my local Geth client using Web3j Android but getting SocketTimeoutException: connect timed out

started Geth node using geth --rpc --rpcaddr <my_ip> --rpcport <port>

Trying to connect via Web3j web3 = Web3jFactory.build(new ttpService("http://my_ip:port"));

Geth node and my android device are on same lan and sharing same internet.

Any help is much appreciated.

Adam Kipnis
  • 10,175
  • 10
  • 35
  • 48
Saad Asad
  • 2,528
  • 3
  • 20
  • 27

1 Answers1

1

You can try to use 0.0.0.0

--rpcport "YourPort" --rpcaddr "0.0.0.0" --rpccorsdomain "*"
Vitaly Migunov
  • 4,297
  • 2
  • 19
  • 23