2

I have a node running monerod. And have many nodes to run XMRig. How can I start monerod in order to connect XMRig?

jtgrassie
  • 19,601
  • 4
  • 17
  • 54
GHui
  • 41
  • 1
  • 4

1 Answers1

2

How can I use XMRig to connect monerod...

Set the pool URL to your local daemon (i.e. 127.0.0.1:18081), the user to your wallet address and set daemon:true (in the config file), or --daemon (as a command-line argument).

So if using a config file, then like:

{
    "cpu": true,
    "pools": [
        {
            "algo": "rx/0",
            "coin": "monero",
            "url": "127.0.0.1:18081",
            "user": "48ed...",
            "daemon": true
        }
    ]
}

Of if using command-line arguments, like:

./xmrig -o 127.0.0.1:18081 -a rx/0 -u 48ed... --daemon

How can I start monerod...

For starting monerod, you don't need any specific settings for localhost connections from XMRig (as used like above).

If however you intend to connect instances of XMRig not running localhost to the daemon, you will need to adjust the above pool IP to that of the IP you will run monerod on, and start monerod with an appropriate --rpc-bind-ip <your IP> or --rpc-restricted-bind-ip <your IP>.

jtgrassie
  • 19,601
  • 4
  • 17
  • 54