I have a node running monerod. And have many nodes to run XMRig. How can I start monerod in order to connect XMRig?
1 Answer
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>
.
-
-
No, if you want to use XMRig for mining using a daemon, you must configure as I have answered. Commented Jun 4, 2021 at 2:36
-
-
"How can I see the XMRig connections on the monerod?" <- Increase your daemon log level, e.g.
set_log +daemon.rpc:INFO
, or compile XMRig withWITH_DEBUG_LOG
, or use a tool like tcpdump. Commented Jun 5, 2021 at 3:38 -
The XMRig show ' net use pool donate.v2.xmrig.com:3333 178.128.242.134'. Is this right?– GHuiCommented Jun 5, 2021 at 13:44