Docs / How can I help Doge / Configure your node

Hands-on, part 2

Configure your node

dogecoin.conf paths and options, RPC safety, port 22556, peers, and a brief, endorsement-free note on mining pools.

Once Dogecoin Core is installed, you can shape how it behaves with a plain text file named dogecoin.conf. Everything on this page is taken from the official Core comments and getting-started notes. If a flag is not listed there, do not invent it, and do not paste a stranger’s “optimized” config from a forum.

Official references: share/dogecoin.conf and doc/getting-started.md. You can also run dogecoin-qt -help or dogecoind -help, and dogecoin-cli help for RPC commands.

Where dogecoin.conf lives

Put the file in your data directory, the same official default paths as on the install page:

PlatformConfig file
Windows%APPDATA%\Dogecoin\dogecoin.conf
macOS~/Library/Application Support/Dogecoin/dogecoin.conf
Linux~/.dogecoin/dogecoin.conf

If you started Core with -datadir, the file goes in that directory instead. Create the file in a text editor, not a word processor. Restart Dogecoin Core after you change it so the new settings load.

Common, correct options

These are real options from official Core, with their documented meaning. A modest starting file can look like this. Lines that begin with # are comments.

# Example dogecoin.conf. Adjust to your machine.
# Official comments live in share/dogecoin.conf.

server=1
listen=1
maxconnections=125
dbcache=450

# Leave prune off unless you need to save disk. See below.
# prune=4096

# txindex cannot be used together with prune.
txindex=0

# Keep RPC on this computer only.
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
OptionWhat it does
server server=1 accepts JSON-RPC commands. You want this if you use dogecoin-cli. In Dogecoin-Qt, you can also run commands from Help → Debug window → Console without exposing RPC to the network.
listen listen=1 lets your node accept inbound peer connections. Official default is to listen, unless you set -proxy or -connect / -noconnect.
maxconnections Maximum peer connections. Official default is 125. Lower it if your connection is modest; you do not need to raise it to be useful.
dbcache Database cache size in megabytes. Official range is 4 to 16384, and the official default is 450. A larger cache can help during sync if you have spare RAM; do not set it so high that the rest of the computer starts to swap.
prune Official values: 0 disables pruning; 1 allows manual pruning through RPC; a number greater than 2200 automatically prunes the block store to that many MiB. Pruning is incompatible with txindex and with -rescan. If you later turn pruning off, Core has to download the deleted history again. A pruned node still validates new blocks, but it cannot serve the full history to peers that need it.
txindex txindex=1 keeps a complete transaction index, which some lookup workloads need. Official default is 0. Do not enable it if you also want to prune; official Core will not let the two work together.
rpcbind / rpcallowip These control where the RPC port listens and which IP addresses may call it. Official default for rpcbind is to bind all interfaces, which is a footgun on a machine that can be reached from a network. Bind to 127.0.0.1 and allow only that address unless you have a specific, local reason to do otherwise.
🔒

Never expose RPC to the internet, and never share rpcpassword. RPC can control the node and, if a wallet is loaded, move coins. Official Core documents the mainnet RPC port as 22555 (testnet is 44555) and, by default, rpcbind listens on all interfaces. Do not port-forward those ports. Do not put RPC on a public IP. Do not paste your RPC password into a ticket, a chat, or a screenshot. If you do not set rpcuser and rpcpassword, Core can use a local cookie file for authentication, which is a good default on a single machine. If you do set a password, treat it like a key.

Open port 22556 for inbound peers

The peer-to-peer port, not the RPC port, is how other nodes talk to yours. Official defaults are:

FunctionMainnetTestnet
P2P2255644556
RPC2255544555

If you want inbound peers, allow TCP 22556 through your operating system firewall and, if you are behind a home router, forward that same port to the machine running Core. You do not have to do this for the node to work. Outbound connections are already useful. Inbound connections are how you become a bit easier for new peers to find. Leave 22555 closed.

Peers: addnode, connect, and a quick health check

Most of the time you can let Core find peers on its own. Two official options change that:

  • addnode=host asks Core to add that peer in addition to the usual automatic connections. You can list the option more than once.
  • connect=host connects only to the hosts you list. Official behavior: -connect=0 or -noconnect disables automatic connections. Use connect only when you deliberately want a tight, limited set of peers.

To see what your node is doing, use the RPC console in Dogecoin-Qt (Help → Debug window → Console) or dogecoin-cli once server=1 is on:

dogecoin-cli getconnectioncount
dogecoin-cli getpeerinfo

getconnectioncount returns how many peers you have. getpeerinfo returns details for each one, such as address and direction. A brand-new node may take a little while to fill out its peer list. If the count stays at zero for a long time, check that you are online, that you are not stuck on an empty connect list, and that a firewall is not blocking outbound traffic. For inbound peers, confirm 22556 is the port you actually opened.

A brief word about mining pools

Running a node and mining are not the same job. A node checks and relays the chain. Mining is the process of searching for the next valid proof of work so a new block can be added. Dogecoin uses the Scrypt proof-of-work function, and it supports merged mining with Litecoin: work that secures Litecoin can also secure Dogecoin, rather than the two chains having to be mined in isolation.

  • Solo mining means you try to find a block yourself. If you succeed, the block reward comes to you. For most people this is a long shot, because you are competing with a lot of other mining work on the network.
  • Pool mining means many miners share work and share rewards when the pool finds a block. You connect your miner to a pool using that pool’s own instructions, not a setting we will invent here.

If you decide to mine, read the guide published by the pool you choose, and keep your node’s RPC port private. We are not recommending any particular pool, software, or hosting company. A node that does not mine is still a complete, valuable way to help Dogecoin.