Manually Connect to a Specific Peer
This page shows how to connect your server by hand to one specific peer, meaning another server, in the XRP Ledger network. You do it with the connect method.
- Section
- Infrastructure
What you need
You must know the peer's IP address and the port it uses for the XRP Ledger peer protocol. The default config file uses port 2459. Your server needs a network connection to the peer, so the peer must forward the right port through its firewall. The peer must also have free peer slots.
The steps in short
Call the connect method with the peer's IP address and port. You can send it over WebSocket, over JSON-RPC or from the command line.
Good to know
If the peer is already at its maximum number of peers, you can ask its operator to add a peer reservation for your server. A peer reservation is also the way to make your server connect to this peer on startup and stay connected later.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made