Can you tell me the differences between



--rpcaddr my_public_ip

--rpcaddr my_private_ip

during a private network config?

Thank you

  • That's more a networking question. If you don't know what is then you have to read TCP/IP guide.
    – Nulik
    Apr 6, 2018 at 17:51

1 Answer 1


--rpcaddr starts the JSON RCP on the localhost network and only connections from your local machine reach the geth server

--rpcaddr starts the JSON RPC on all interfaces and any network can initiate the connection to your geth server

If you need to allow connections only from the localhost network you should use

If you need to allow connections from your local network you should use your network ip (usually something like

If you're going to use anybody can connect to your server

  • 1
    Can you set multiple IPs by repeating --rpcaddr like this: --rpcaddr localhost --rpcaddr Jan 23, 2020 at 10:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.