Goal:
- Understand how to identify node ports
- Understand how to configure node ports
A node has many ports to serve different purposes, but the three one worth focusing on are:
-
RPC (Remote Procedure Call) listen port (default 26657)
-
REST API listen port (default 1317)
-
P2P listen port (default 26656)
-
RPC
- change rpc address in config.toml
- babyd start --rpc.laddr tcp://0.0.0.0:1800
- REST API:
- enable REST API in app.toml
- enable swagger in app.toml
- change REST API in app.toml
- P2P:
- change p2p address in config.toml
- babyd start --p2p.laddr tcp://0.0.0.0:1900