mirror of https://github.com/hyperledger/besu
An enterprise-grade Java-based, Apache 2.0 licensed Ethereum client https://wiki.hyperledger.org/display/besu
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
2.1 KiB
41 lines
2.1 KiB
description: Ports must be exposed appropriately to enable communication
|
|
<!--- END of page meta data -->
|
|
|
|
# Configuring Ports
|
|
|
|
Ports must be exposed appropriately to enable communication. An example port configuration for a Pantheon node on AWS is:
|
|
|
|
![Port Configuration](../../images/PortConfiguration.png)
|
|
|
|
When running Pantheon from the [Docker image](../../Getting-Started/Run-Docker-Image.md), [expose ports](../../Getting-Started/Run-Docker-Image.md#exposing-ports).
|
|
|
|
!!! tip
|
|
Pantheon supports [UPnP](Using-UPnP.md) for home or small office environments where a wireless router
|
|
or modem provides NAT isolation.
|
|
|
|
## P2P Networking
|
|
|
|
To enable peer discovery, the P2P UDP port must be open for inbound connections.
|
|
|
|
We also recommended opening the P2P TCP port for inbound connections. This is not strictly required because
|
|
Pantheon attempts to initiate outbound TCP connections. However, if no nodes on the network are accepting inbound TCP
|
|
connections, nodes cannot communicate.
|
|
|
|
The P2P port is specified by the [`--p2p-port`](../../Reference/Pantheon-CLI-Syntax.md#p2p-port) option.
|
|
The default is `30303`.
|
|
|
|
## JSON-RPC API
|
|
|
|
To enable access to the [JSON-RPC API](../../Pantheon-API/JSON-RPC-API.md), open the HTTP JSON-RPC and WebSockets JSON-RPC ports to the intended users
|
|
of the JSON-RPC API on TCP.
|
|
|
|
The [`--rpc-http-port`](../../Reference/Pantheon-CLI-Syntax.md#rpc-http-port) and [`--rpc-ws-port`](../../Reference/Pantheon-CLI-Syntax.md#rpc-ws-port)
|
|
options specify the HTTP and WebSockets JSON-RPC ports. The defaults are `8545` and `8546`.
|
|
|
|
## Metrics
|
|
|
|
To enable [Prometheus to access Pantheon](../../Monitoring/Monitoring-Performance.md#monitor-node-performance-using-prometheus),
|
|
open the metrics port or metrics push port to Prometheus or the Prometheus push gateway on TCP.
|
|
|
|
The [`--metrics-port`](../../Reference/Pantheon-CLI-Syntax.md#metrics-port) and [`--metrics-push-port`](../../Reference/Pantheon-CLI-Syntax.md#metrics-push-port)
|
|
options specify the ports for Prometheus and Prometheus push gateway. The defaults are `9545` and `9001`. |