I need to install monero on 30 machines and I created a for script to do this.

for i in {1..10}

  monero --rpc-bind-ip 10.0.0.$i


The problem is that I keep getting a response of invalid IP during monero execution. Anyone know how to successfully pass the variable into --rpc-bind-ip?


  • Do you actually have 10 ethernet adapters?
    – jtgrassie
    Dec 4, 2018 at 13:43
  • Also, what are you actually trying to do? Because the script looks like it's trying to create 10 daemons on the same machine each running an RPC server on a different address.
    – jtgrassie
    Dec 4, 2018 at 14:37
  • I have 10 computers that I plan to use to run monero.
    – jia chang
    Dec 5, 2018 at 14:24
  • honestly, i am new to Monero. I am not sure what the --rpc-bind-ip do , any help is appreciated! thanks!
    – jia chang
    Dec 5, 2018 at 14:28
  • --rpc-bind-ip is used to bind the IP (as assigned to one of your ethernet cards) to be used for the RPC interface of the daemon. If you need to remotely access the daemon RPC, you would need to set this to the IP address of your ethernet card which can be accessed remotely or to which means all ipv4 addresses on the machine.
    – jtgrassie
    Dec 5, 2018 at 15:10

1 Answer 1


Firstly your bash script is invalid:

  1. you are missing do after the for line
  2. monero should be monerod
  3. you would also need the --detach option, as without it, monerod is running interactively.

Next, your script is actually trying to launch 10 instances of the daemon on a single machine. Not 10 machines each running monero. Also, these 10 instances are each trying to bind the RPC server to separate IP addresses on this same single machine, and I doubt very much you have 10 addresses assigned to your ethernet card(s) on this single machine.

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.