What is the Monero P2P port?
What is the Monero RPC port?
What purposes do the different ports serve? Are there other ports Monero needs to have setup properly in order to use extra features?
Monero Stack Exchange is a question and answer site for developers and users of the secure, private and untraceable cryptocurrency Monero. It only takes a minute to sign up.
Sign up to join this communityWhat is the Monero P2P port?
What is the Monero RPC port?
What purposes do the different ports serve? Are there other ports Monero needs to have setup properly in order to use extra features?
On the daemon side (bitmonerod)
P2P Port is the one used to connect with the other nodes on the network (or locally in some cases).
RPC port (Remote Procedure Call) is used to let other applications such as simplewallet or the GUI interact with the daemon, for instance to get information about a block.
Default ports for the daemon are
They can be changed with following options
On the wallet side (simplewallet)
RPC port is used to let other applications interact with the wallet for instance to get balance.
The wallet do not act as a RPC server by default. It can be activated with the option --rpc-bind-port.
For daemon and wallet
The RPC data are exchanged using JSON-RPC a protocol based on JSON data format.
This page shows how to use programming language Python to interact with the daemon or the wallet via RPC.
UPDATE: Added 2 information from user36303 for completeness and because the firewall comment is important
Wallet and daemon may use 53 for DNS, which is optional.
It is recommended to only open the RPC port on your firewall if you need to access RPC from the outside, especially for the wallet.
firewall-cmd --add-port=18080/tcp --permanent
, firewall-cmd --add-port=18081/tcp --permanent
not necessary and firewall-cmd --add-port=53/upd --permanent
optinally for wallet dns
– Louis Loudog Trottier
Jun 18 '18 at 3:03
You can run Monero without an open port but others will not be able to connect to your node in order to help synchronize their nodes.
Open port 18080 to allow incoming P2P connections. The RPC port is 18081. print_cn
will help you verify your incoming connections are working
The bitmonerod defaults are:
Mainnet:
P2P: 18080
RPC:18081
Testnet:
P2P: 28080
RPC: 28081
The wallet's RPC port has no default.
Wallet and daemon may use 53 for DNS, which is optional.
It is recommended to only open the RPC port on your firewall if you need to access RPC from the outside, especially for the wallet.