2

While starting node, what is the difference between --port and --rpc-port?

1 Answer 1

1

Running your node with --help will show you all the flags with a quick definition: ./target/release/node-template --help

--rpc-port <PORT>.  //Specify JSON-RPC server TCP port

--port <PORT> //Specify p2p protocol TCP port

In this case --port specifies the port to listen on for peer-to-peer (p2p) traffic (for the nodes to connect) and --rpc-port specifies the port to listen on for incoming RPC traffic (for frontend to connect with the node).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.