Connecting to Well-known Nodes¶
Use testnet.aergo.io and the default port 7845 to connect to a public GRPC server for the testnet.
docker run --rm aergo/tools aergocli -H testnet.aergo.io blockchain
Without any specific settings, the server connect to Polaris for the testnet, registers itself, obtains addresses of other nodes, and automatically attempts to connect those nodes. If the server is in the NAT environment, or has multiple NICs, additional settings are required for the external node to access the server. Set up outside address for other nodes in the external network connection, and set internal address for binding address.
netprotocoladdr = "22.214.171.124" # external address to which other peer can connect netprotocolport = 7846 npbindaddr = "192.168.0.2" # no config element or empty string means using same address as external npbindport = 17846 # negative number means it is same as external port, in this case 7846