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

done

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?

Thanks!

  • Do you actually have 10 ethernet adapters? – jtgrassie Dec 4 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 at 14:37
  • I have 10 computers that I plan to use to run monero. – jia chang Dec 5 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 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 0.0.0.0 which means all ipv4 addresses on the machine. – jtgrassie Dec 5 at 15:10

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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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