> ## Documentation Index
> Fetch the complete documentation index at: https://docs.polygon.technology/llms.txt
> Use this file to discover all available pages before exploring further.

# Network configuration

> Default ports used by Bor and Heimdall nodes for peer connections, RPC, WebSocket, monitoring, and discovery.

The tables below list the default ports used by Bor and Heimdall nodes. These ports govern peer connections, RPC access, monitoring endpoints, and peer discovery.

## Bor node

| Name                   | Port  | Tags                      | Description                                                                                         |
| ---------------------- | ----- | ------------------------- | --------------------------------------------------------------------------------------------------- |
| Network Listening Port | 30303 | Public                    | Port used by Bor for peer connections and synchronization.                                          |
| RPC Server             | 8545  | Can be Public, Internal   | RPC port for sending transactions and fetching data. Heimdall uses this port to obtain Bor headers. |
| WebSocket Server       | 8546  | Can be Public, Internal   | WebSocket port for real-time updates.                                                               |
| GraphQL Server         | 8547  | Internal                  | GraphQL port for querying data.                                                                     |
| Prometheus Server      | 9091  | Can be Public, Monitoring | Prometheus APIs for Grafana data source. Can be mapped to ports 80/443 via an Nginx reverse proxy.  |
| Grafana Server         | 3001  | Can be Public, Monitoring | Grafana web server. Can be mapped to ports 80/443 via an Nginx reverse proxy.                       |
| Pprof Server           | 7071  | Internal, Monitoring      | Pprof server for collecting Bor metrics.                                                            |
| UDP Discovery          | 30301 | Can be Public, Internal   | Default port for Bootnode peer discovery.                                                           |

## Heimdall node

Heimdall runs on CometBFT and the Cosmos SDK, so its ports differ from Bor's.

| Name              | Port  | Tags                      | Description                                                                                   |
| ----------------- | ----- | ------------------------- | --------------------------------------------------------------------------------------------- |
| P2P Port          | 26656 | Public                    | CometBFT peer-to-peer port for connecting to other Heimdall nodes and synchronization.        |
| RPC Server        | 26657 | Can be Public, Internal   | CometBFT RPC endpoint for queries and submitting transactions. Bound to localhost by default. |
| REST API          | 1317  | Can be Public, Internal   | Cosmos SDK REST (LCD) API for querying Heimdall state over HTTP.                              |
| gRPC Server       | 9090  | Internal                  | Cosmos SDK gRPC endpoint for querying Heimdall state. Bound to localhost by default.          |
| Prometheus Server | 26660 | Can be Public, Monitoring | CometBFT Prometheus metrics endpoint for monitoring.                                          |
| Pprof Server      | 6060  | Internal, Monitoring      | Pprof server for collecting Heimdall runtime metrics.                                         |
