Running a server · How the ledger runs

Set Maximum Number of Peers

In plain words

An xrpld server has a soft maximum for the number of peers, meaning other servers, it connects to. The default is 21, and you can change it in the config file.

Written by zerps in plain words, from the source linked below.
Section
Infrastructure

What it covers

Inside, the server works out rough quotas of incoming and outgoing peers. You can go over the soft maximum if you use fixed peers or peer reservations, or if you connect to more peers by hand with the connect method.

The steps in short

Edit your server's config file. Uncomment and edit the peers_max stanza, a named block of settings, or add one. Its only content should be a whole number: the total number of peers to allow. Then restart the xrpld server.

The main points

By default, the server tries to keep about 85% incoming and 15% outgoing peers, with a minimum of 10 outgoing peers. So any value under 68 does not raise the number of outgoing connections. If peers_max is less than 10, the server still allows 10 outgoing peers, so it stays connected to the network. To block all outgoing peer connections, set the server up as a private peer instead.

Good to know

The more peers you are connected to, the more network bandwidth your server uses. Set a large number only if your server has a good network connection and you can afford the bandwidth costs.

Source: xrpl.org. Read 6 December 2026.

Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made

zerps Trading tokens on the XRP Ledger carries risk, including total loss. zerps is a self-custodial interface; it does not hold funds, give advice, or execute trades on your behalf.