Home

How do I set the pool URL in XMRig?

You set the pool URL in XMRig by putting your mining pool’s server address and port in the "url" field inside the "pools" section of config.json. You can also pass it on the command line with -o, such as -o pool.example.com:3333.

Find the right address and port

Your mining pool should list its connection details on a “Getting started” or “Help” page. A pool combines your mining work with work from other miners and shares rewards according to its rules.

You need two pieces of information:

  • Server address: The pool’s hostname, such as pool.example.com.
  • Port: The number after the colon, such as 3333. It tells XMRig which connection service to use.

The addresses and ports here are placeholders, not working pool details. Replace them with the exact values your chosen Monero pool provides.

Do not paste the pool’s website address, such as https://pool.example.com/help. XMRig needs its mining server, which may have a different address. If the pool offers regional servers, choose one near you to reduce connection delay.

Set the URL in config.json

Stop XMRig before editing its configuration file. Find the existing "pools" section and update its entries. A minimal example looks like this:

{
  "pools": [
    {
      "coin": "monero",
      "url": "pool.example.com:3333",
      "user": "YOUR_MONERO_WALLET_ADDRESS",
      "pass": "x",
      "tls": false
    }
  ]
}

If your file already contains other settings, keep them and edit only the relevant pool fields. Do not paste a second complete configuration into the same file.

Here is what each setting means:

  • "url" specifies the mining server and port.
  • "user" usually holds your public Monero wallet address, where payouts go. Some pools use an account name instead.
  • "pass" is often "x", but follow your pool’s instructions.
  • "tls" controls TLS, the encryption that protects your connection to the pool.

For an encrypted connection, use the pool’s TLS-specific port and set "tls": true. Simply changing this setting without checking the port can prevent a connection.

Save the file. JSON, the settings format used here, requires double quotes and does not allow a trailing comma after the last item.

Set it from the command line instead

For a plain connection, you can start XMRig with:

xmrig -o pool.example.com:3333 -u YOUR_MONERO_WALLET_ADDRESS -p x --coin monero

For TLS, use the encrypted port supplied by your pool and add --tls:

xmrig -o pool.example.com:443 -u YOUR_MONERO_WALLET_ADDRESS -p x --coin monero --tls

Port 443 is only an example; it is not a universal pool port. Depending on your system, the program name may be ./xmrig or xmrig.exe.

Check that XMRig connects

Restart XMRig and read its startup messages. Confirm that it shows the intended server, receives mining jobs, and eventually reports accepted work.

If it fails:

  • Check the hostname and port for typing mistakes.
  • Confirm that the port matches your TLS setting.
  • Check that XMRig loaded the file you edited. You can specify it with --config=config.json.
  • Check your firewall and the pool’s service status.

A pool needs your public payout address, never your wallet’s secret recovery words or private keys.

The bottom line

Use "url": "server:port" in your pool configuration, or supply -o server:port when starting XMRig. Match the pool’s port and TLS instructions, then verify the connection in XMRig’s output.

All 1,000 questions

MyAiMiner.com

MyAiMiner.com — Monero mining blog. 1,000 questions. Clear answers.

Monero (XMR) Mining BLOG

Hashes0
Blocks accepted0
Blocks rejected0
Runtime00:00:00