Troubleshooting Hyperledger Besu peering in private networks

Besu nodes that never connect or keep dropping on a private network usually trace to a short list of causes: enode mismatches, blocked ports, NAT, DNS and permissioning. This page gives the order to check them.

On this page

Why Besu peers fail to connect on a private network

A new or existing Besu node fails to peer when it cannot complete the handshake with the nodes it needs, or when those nodes refuse it. On a private network the usual causes are a mismatched enode URL, a blocked port, a discovery path that never reaches the other nodes, or a permissioning rule that rejects the connection. Peering in Besu has several layers. Nodes find each other through discovery, which starts from bootnodes listed in the network configuration, or through static nodes that an operator names explicitly in the node's configuration. Once a connection is attempted, the node also checks its node permissioning file, where each node can be restricted to known participants. A failure can sit at any of these layers, so the first job is to find which one is failing.

Plan for this troubleshooting path when a node that was never online joins an existing permissioned network, when a consortium member changes its IP address, hostname or port, or when a node that was connected drops peers after a firewall, router or cloud network change. It also applies when the node reports peers but the count stays low or falls over time. The Besu peering troubleshooting guide lists the checks in order, and the Besu private networks documentation explains how bootnodes, static nodes and permissioning fit into a network you run yourself. Before you start, confirm with each member which bootnode and static node addresses they published, which ports they expose, and which version of Besu each node runs, since peering behavior depends on the configuration each operator has actually deployed.

How a Besu node finds and keeps peers

A Besu node starts with its bootnode or static node list, then each candidate must match the expected enode URL before any connection is kept. The TCP and UDP path must be open through NAT and firewalls, DNS must support TCP, and the local permissions file and peer limit decide whether the connection stays. Work through the diagram from left to right and check each hand-off in order, because a failure at any step looks like a peer that never connects.

Peer connection checks in the order a Besu node applies them.

Which peering failures show up most often

Most stalled Besu peering comes down to a short list of mismatches between what one node advertises and what another expects. The cards below follow the Besu peering checklist, so each one names a symptom and the first check to run before changing anything else.

Enode URL mismatch

A bootnode or static node entry holds an enode URL that does not match the one the remote node actually shows. Besu will dial the address it was given, so a stale public key, IP address or port in the list means the connection never forms, even when the host is healthy. Compare each configured enode URL with the value reported by the remote node, character for character, after any restart or key change. Confirm that the node key file behind each enode has not been regenerated.

Peering troubleshooting

Closed TCP or UDP port 30303

Peer discovery and peer connections use port 30303, and a host firewall or security group that blocks either protocol leaves a node that looks running but isolated. Discovery depends on UDP while the peer connection depends on TCP, so a rule that opens only one protocol produces partial failures that are easy to misread. Check that both protocols are open between every pair of nodes that must peer, in both directions, on the host and on any network boundary in between.

NAT without port forwarding

A node behind network address translation advertises an address that other peers cannot reach unless the router forwards port 30303 for both UDP and TCP. Where the router supports UPnP, the --nat-method option set to UPNPP2PONLY can request the mapping automatically. Verify the externally visible address the node reports against the forwarding rule, and confirm the router actually grants the mapping rather than assuming it did.

DNS support for TCP

Peer lookup that depends on DNS fails quietly when the resolver in use does not support TCP, which can happen in locked-down or split-horizon resolver setups. Besu's checklist asks you to confirm that DNS works over TCP from each node. On private networks, -Xdns-enabled set to true can help the node find peers, so test that setting in a lab before changing production hosts.

Node permissioning rejects unknown enodes

When node permissioning is enabled, a node refuses connections from any enode missing from its allowlist, so a new participant can look unreachable even though the network path is open. The permissions configuration file must list the enode of every node that should connect, and each node needs the same view of its peers. Check the local permissions file on both sides of a failed connection before assuming a network fault.

Permissioning docs

Peer limits reached

A node that already holds its maximum number of peers will refuse or drop new connections, which looks like intermittent peering rather than a configuration error. This often appears after a network grows or when one node is a hub for many clients. Review the configured peer limits on the affected node, count its active connections, and confirm that the limit is set high enough for the number of participants expected to connect to it.

How to work through a peering fault step by step

This sequence moves from the cheapest checks to the most involved, so each step narrows the cause of a peer that will not connect or keeps dropping before the next one starts.

  1. Confirm the advertised enode URL

    Start by comparing the enode URL each node advertises with the entry stored in the bootnode or static node list of its peers. The node operator on each side should copy the enode from the node's own startup output or admin RPC output, then check it character by character against the peer's configuration. Look for a wrong public key, a changed IP address, a stale port, or a mismatched discovery port. Done means every configured enode matches what the remote node reports for itself, with no differences in host, port or key.

  2. Verify TCP and UDP reachability between hosts

    Next, confirm that the required TCP and UDP ports are open in both directions between each pair of hosts, using the port your nodes listen on. Run a connectivity test from one host to the other for each protocol, and check host firewalls, security groups and network access rules as well as any network appliance in the path. Peering uses both protocols, so a port that answers only on TCP is not enough. Done means each pair of hosts can reach the other on both protocols from the network segment where the node actually runs.

  3. Check NAT forwarding and the nat-method option

    If either node sits behind NAT, confirm that the external port forwards to the node for both UDP and TCP, and that the advertised address is the public address the peer can reach. Where the router supports UPnP, you can use the --nat-method option with UPNPP2PONLY, but treat that as a router-dependent choice and confirm it on your own equipment. Check the router's forwarding table and the address the node advertises. Done means a test from the remote host reaches the forwarded address, and the advertised enode carries the address the peer actually dials.

  4. Confirm DNS resolution for peer hostnames

    If enode entries use hostnames rather than IP addresses, confirm that every node resolves each peer name to the correct address and that the resolver answers over TCP as well as UDP. Run name lookups from the same host and user account the node runs under, because a service may use a different resolver than an interactive shell. On private networks only, the -Xdns-enabled setting can help nodes find peers, and it should be enabled only after you confirm the network is private. Done means each hostname resolves to the expected address from every node, and the lookup returns the same result over both transports.

  5. Review the node permissions file

    Next, open the node permissions configuration on both sides. Node permissioning restricts which nodes can connect, so a peer missing from the allowlist will fail even when addresses, ports and names are correct. Compare the enode entries in the permissions file against the enode URLs confirmed in step one, and make sure each member's current enode is present. The node operator should record the change in the same change process used for other network configuration. Done means every participant's current enode appears in the allowlist on each node that needs to accept it, and the file is consistent across the consortium.

  6. Check the peer count on each node

    Finally, query each node for its current peer count and the list of connected peers. A healthy node in a small private network should show the connections you expect from its bootnode or static node configuration. If a peer is missing, go back to the earlier step that covers that pair of hosts, since the fault is usually in addressing, ports, DNS or permissions. Also check the logs for repeated connection attempts, disconnect reasons and handshake failures over a period of time, not only at one moment. Done means every expected peer is connected and stays connected through a monitoring window that your team chooses.

Which fix fits which cause

Static nodes fit a small, fixed set of peers where each operator can publish its enode URL in advance. Bootnodes fit when a node should reach a few seed nodes first and learn other peers through discovery. Both approaches depend on the same rule: the enode URL in the configuration must match the one the remote node reports, including the address and port it advertises.

  • Static nodes: Each node receives the enode URLs of its expected peers, so connection attempts go to known addresses and do not depend on discovery.
  • Bootnodes: Each node receives a short list of seed nodes, which share addresses of other peers once the node connects.
  • Enode matching: A wrong IP address, port, or public key in one entry causes repeated failed attempts that look like a network fault.
  • Trade-off: Static lists need an update whenever a node's address or key changes, while bootnodes concentrate first contact on a few hosts that must stay reachable.
  • Stale entries: Removed or re-keyed nodes left in a list keep generating failed attempts that can hide the real problem.

Before changing either list, confirm that each enode matches what the remote node shows, and that TCP and UDP traffic reaches the port in both directions.

How permissioning and key changes break peering

Permissioning is the most common reason a peer is reachable on the network yet never appears in a node's peer list. Besu's local permissioning uses a node permissions configuration file that restricts connections to known participants. If the remote enode is not on the allowlist of the local node, Besu refuses the connection even when TCP and UDP traffic flows freely. Check the permissions file on both sides of a failing pair, because a node can accept a peer while the peer rejects it. Confirm with the Besu permissioning documentation how the file is referenced in your configuration and whether your network expects node permissioning, account permissioning, or both, so you do not chase a firewall problem that is really an allowlist gap.

A changed node key changes the node's enode URL, since the enode carries the public key. Once that happens, every other participant that lists the old enode in a bootnode list, static nodes file or permissions file treats the node as unknown. The node may come back online and still be invisible to the rest of the network. Treat a key rotation as a coordinated change: generate or replace the key, publish the new enode, and have every participant update its permissions and static configuration in the same change window. Keep a dated record of which enode each organization used, so you can see which party is still running the old value.

The local node private key file is not encrypted, so anyone who can read it can impersonate the node, which makes file permissions and storage location part of the peering design. Key storage, hardware-backed options and transaction signing are covered in the separate topic on key management and HSMs, and this section only flags the link to peering. Before you rotate a key to fix a peering fault, confirm the new enode can be reached and that the affected organizations have agreed the change in writing.

Security and operations considerations while debugging peers

Peering fixes often tempt teams to open ports widely, turn on verbose logging or edit files by hand. The cards below cover the controls that keep a private Besu network reachable only by its members while the connection problem is being solved.

Open ports only to known peers

Open the P2P ports, TCP and UDP on the default 30303 used in the peering docs, only between the source addresses of the nodes that are meant to connect. A rule that allows any source address may make the connection work, but it also exposes every node to unknown hosts on the same network path. Before closing the ticket, list each rule with its source and destination, and confirm that a host outside the consortium cannot reach the port. Ask your network team to confirm whether NAT or a load balancer changes the source address the remote node sees.

Peering troubleshooting docs

Avoid wide-open discovery

Peer discovery helps nodes find each other on public networks, but a private network usually has a fixed set of members with known addresses. Using static nodes or a bootnode list you control keeps the set of possible peers small. If you enable DNS-based discovery with the -Xdns-enabled setting while debugging, treat it as a temporary aid and remove it once the peer list is stable. Confirm which discovery mechanism each node uses before you judge a peering failure.

Put permissions files under change control

Node permissioning restricts connections to participants named in a local permissions configuration file on each node. A peer that fails to connect may be blocked by an allowlist edit made during the incident, not by the network. Store these files in version control, require a reviewed change for each edit, and record which enode entries were added or removed and why. Confirm that every node in the consortium applies the same list, since one out-of-date file can split the peer set.

Permissioning docs

Turn off debug logging after the fix

Verbose networking logs help isolate handshake failures, but they can record peer identifiers, IP addresses and large volumes of data on production hosts. Lower the log level once the connection is confirmed, and check that the log destination does not grow without limit. Treat logs from the debugging session as sensitive, restrict who can read them, and set a removal date. Ask your logging team which retention rules apply to Besu node logs in your environment.

Protect the node key files

The node private key identifies each node, and its enode URL derives from the public part of that key. During peering work, teams sometimes copy key files between hosts to fix a mismatch, which spreads a secret and changes identity. Keep each key on the host that uses it, and check the enode value against the key on that host instead of moving files. Besu documents that the local node private key file is not encrypted, so confirm with your security team whether a security module plugin is required for your hosts.

Node keys docs

Record enode lists in version control

The enode URLs for bootnodes, static nodes and allowlists are the shared address book of a private network. Keep a dated, reviewed copy in version control with the owner of each entry, so you can compare what each operator runs against what was agreed. When a node changes address or its key is rotated, the list must be updated in one controlled change. Ask each consortium member to confirm their entries during onboarding and after any change to node hosts or networks.

Questions teams ask before bringing in outside help

How long does troubleshooting Besu peering usually take?

No fixed duration applies, because the time depends on how many nodes are involved, how many network layers sit between them, and whether permissioning is enabled. A two-node lab with an open network usually needs far less work than a consortium with validators behind NAT, several firewalls and a local permissions file on every node. Ask any provider to break the estimate into discovery, fixes per layer and retesting, and to state which of those steps assume access they have not yet been given.

What drives the cost of a peering engagement?

The main cost driver is the number of nodes and the number of distinct organizations or networks that must be checked, since each one adds configuration review and coordination. Network complexity matters too: NAT, load balancers, host firewalls and cloud security groups each need their own verification. Permissioning adds work because allowlists must match on every node. A quote should follow from a written scope that lists the nodes, environments and layers in play, and it should separate one-time remediation from any recurring support.

What does the client need to provide before work starts?

Plan to provide network access to the nodes or a representative test environment, the enode URLs each node advertises and those configured as bootnodes or static nodes, and the current permissions configuration files. You will also need firewall and security group rules, NAT or port forwarding details, and DNS records if DNS discovery is used. Change windows matter because some fixes, such as restarting nodes or editing allowlists across a consortium, must be scheduled with every operator. Confirm these items in writing before the scope is final.

Can our internal team troubleshoot Besu peering on its own?

Often yes, if the team can read node logs, compare enode URLs and test TCP and UDP connectivity between hosts. The hardest part is usually cross-organization coordination, because a mismatch on one operator's node can block connections for everyone. Internal teams should check the peering checklist in the Besu documentation first and confirm the Besu version they run, since behavior changes between releases. An outside team adds most value when the problem spans several networks, when the cause is intermittent, or when the internal team lacks time to build a repeatable test method.

What does a quote depend on?

A quote depends on the written scope: which nodes and environments are covered, which network layers must be tested, whether permissioning and DNS are in use, and what evidence the client expects at the end. It also depends on access. If access to hosts, firewalls or partner nodes arrives late, the work plan changes. Ask for the deliverables stated plainly, such as a fix list, retest results and a runbook for future peer changes, and confirm whether the quote covers only diagnosis or also remediation.

Does a peering problem still need outside help after the first fix?

A single fix may close the incident, but peering problems often return after certificate rotations, IP changes, Besu upgrades or new validators join. A retainer makes sense when a network changes regularly, when several organizations depend on the same peering rules, or when the internal team wants scheduled checks after each Besu release. Ask what a retainer includes in terms of response, change review and testing, and how it handles upgrades that alter peering behavior.

Does DeployOpen run this work in our own infrastructure?

Yes. DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including their cloud accounts, data centers or air-gapped networks. For peering work, that means the investigation and changes happen in the environments you control, under agreed access and change procedures. Scope, deliverables and timelines are agreed in writing before work starts.

How DeployOpen scopes Besu peering fixes

DeployOpen starts a peering engagement by fixing the scope in writing before anyone changes a node, a firewall rule or a configuration file. The scope names the affected networks, the symptom as operators describe it, the nodes and sites involved and the change windows the client allows. Work happens inside the client's own infrastructure, whether that is their cloud accounts, data centers or an air-gapped network, so access, approval paths and rollback responsibilities are agreed up front. Scope, deliverables and timelines are agreed in writing before work starts, and the written scope is the reference for what is and is not being changed.

From there, DeployOpen documents the baseline before touching anything. For each node this means recording the enode URL the node reports, the enode URLs configured in bootnodes or static node lists on its peers, the listening ports and their protocols, the DNS names used and whether DNS resolution succeeds over TCP, and any NAT or port forwarding between sites. The permissions baseline covers the node permissioning file that restricts which peers may connect, including whether the allowlist matches what each participant expects, and the peer limits in force. Where a node key or enode has changed since the last known good state, the baseline records that as a finding rather than assuming it is harmless.

The output is a fault statement tied to that baseline, a set of approved changes in the agreed order and a runbook the client's own team can follow. The runbook covers the checks that confirm each peer pair connects, the logs and metrics to watch, how to revert each change and who approves a change to a permissions file or a firewall rule. Retesting after the fix, and any follow-up support, are defined in the same written scope so the client knows what is delivered and when it is considered closed.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.