πŸ”€ Changing Default Ports in the Cosmos Ecosystem

Cosmos-based blockchains use Tendermint, which relies on specific network ports. If you run multiple nodes on the same server, you must change their default ports.


Default Ports Used by Tendermint

Component
Default Port

P2P

26656

RPC

26657

ABCI

26658

PProf

6060

Prometheus

26660

gRPC

9090

gRPC-Web

9091

REST API

1317

⚠️ Running multiple nodes on one server is not recommended β€” proceed at your own risk.


Configuration Files

$HOME/.your_node/config/config.toml
$HOME/.your_node/config/app.toml
$HOME/.your_node/config/client.toml

Change Ports Automatically Using sed

config.toml


app.toml


client.toml


external_address


Restart the Node After Changes


βœ… Tip: Always back up configuration files before editing. .bak copies are automatically created by sed.

Last updated