I have multiple network adapters (with virtual IP addresses on each) on my box and I want to run geth on a certain network interface with a certain IP address. How do I do this? Can't find the parameter.

--port is for port only, but where is the --ip option ? (or --device)


You can do that with this parameter --rpcaddr YOURVIRTUALIP.

So if you want to access from another computer on your local network remember to open your virtual IP to your local network.

You can find more information here https://github.com/ethereum/go-ethereum/blob/master/README.md


  • but I am talking about the RPC API, I am talking about the Wire protocol.
    – Nulik
    Apr 14 '18 at 21:05
  • In this case the interface used is the default network you can use route in linux to see what is it, if you want to change the IP of the enode, you need to change your default network device to the IP that you want. If anyone knows another alternative welcome here :) Regards!
    – lexfaraday
    Apr 16 '18 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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