Monero node ports in one line: 18080 is the peer-to-peer port other nodes connect to, 18081 is the full RPC port your own wallet talks to, 18082 is ZMQ RPC, and 18089 is the port many public nodes use for restricted RPC, the safe, read-only version of the API they share with strangers. Only 18080 needs to be reachable from the internet for a normal node. Keep 18081 on localhost, and open 18089 only if you deliberately run a public node.
The defaults below come from src/cryptonote_config.h and the option definitions in the Monero 0.18.5.4 source code, checked in November 2026, and from the official monerod reference. Our own node, which feeds the explorer and the network page, is set up exactly this way.
All Monero ports in one table
| Port | Network | What it is | Option to change it | Open to the internet? |
|---|---|---|---|---|
| 18080 | Mainnet | P2P: node-to-node traffic | --p2p-bind-port | Yes, if you want incoming peers |
| 18081 | Mainnet | RPC: full, unrestricted API | --rpc-bind-port | No, keep it on 127.0.0.1 |
| 18089 | Mainnet | Restricted RPC (convention, not a default) | --rpc-restricted-bind-port | Only for a public node |
| 18082 | Mainnet | ZMQ RPC | --zmq-rpc-bind-port | No |
| 18083 | Mainnet | ZMQ pub, as used by P2Pool (convention) | --zmq-pub | No |
| 28080 / 28081 / 28082 | Testnet | P2P / RPC / ZMQ | same options | As above |
| 38080 / 38081 / 38082 | Stagenet | P2P / RPC / ZMQ | same options | As above |
| 37889 / 37888 / 37890 | P2Pool | Main / mini / nano sidechain P2P | P2Pool options | Yes, if you mine with P2Pool |
| 3333 | P2Pool | Stratum for your miners | P2Pool options | Only to your own miners |
Two things in this table are conventions rather than defaults. monerod has no default restricted RPC port: --rpc-restricted-bind-port is empty unless you set it, and 18089 is simply what most public node operators chose. Likewise --zmq-pub has no default address; tcp://127.0.0.1:18083 is the value the P2Pool README uses.
Port 18080: the P2P port
This is how your node talks to the rest of the Monero network: it downloads blocks, relays transactions and shares peer lists. The documentation describes the default --p2p-bind-ip of 0.0.0.0 as binding to all interfaces, "typically what you want".
Do you have to open it? No. With 18080 closed, your node still makes outgoing connections (12 by default, set by --out-peers) and syncs normally. Opening it lets other nodes connect to you as well, which helps the network and gives you more peers. Most home routers need a port forward for that.
Things worth knowing:
- UPnP is gone. Monero 0.18.5.0 removed UPnP support from the daemon, so
monerodno longer opens the router port for you. The--igdoption still exists in the source but only reads "UPnP port mapping (disabled)". Forward 18080 on your router by hand if you want incoming peers. --p2p-external-porttells other nodes which port to use when your router forwards a different external port to 18080.--hide-my-portkeeps the port open locally but stops your node advertising itself; the docs put it as "not really hiding, it is more like 'do not advertise'".- One connection per IP.
--max-connections-per-ipdefaults to 1, and since 0.18.5.3 public IPv6 connection limits are grouped by /64.
Port 18081: the full RPC port
This is the API your wallet uses to scan the chain and submit transactions. It is unrestricted: it can stop the daemon, ban peers, start mining and change settings. That is why the default --rpc-bind-ip is 127.0.0.1, and why the documentation says the API "gives full administrative capabilities over the node".
If your wallet runs on the same machine as the node, leave 18081 exactly as it is. If your wallet runs on another machine in your home (a laptop talking to a home server), you have two safe options:
- Expose the restricted port on your LAN instead (next section), or
- Keep 18081 on localhost and reach it through an SSH tunnel or a Tor hidden service.
Binding 18081 to a non-local address requires --confirm-external-bind, a deliberate speed bump. Adding --rpc-login user:password protects it with a login, but a restricted port is still the better tool for anything you do not fully control.
Port 18089: restricted RPC
Restricted RPC is the read-only version of the API: "view only commands" that "do not return privacy sensitive data", in the words of the --restricted-rpc option. Wallets work fine against it: they can read blocks, get decoys, estimate fees and submit transactions. What they cannot do is administer the node.
There are two ways to run it:
- A second, restricted listener next to the full one. This is the usual setup:
--rpc-restricted-bind-ip 0.0.0.0 --rpc-restricted-bind-port 18089Your own tools keep 18081 on localhost; everyone else gets 18089. - Restrict the main port with
--restricted-rpc. The docs note this "does not make sense with--rpc-restricted-bind-portbecause you would end up with two restricted APIs."
To advertise your node so wallets can find it, add --public-node, which requires a restricted RPC listener. Our article on Monero restricted RPC lists exactly which calls are refused there, including the change in 0.18.5.3 that stopped restricted nodes from listing the full mempool.
Connection limits on the RPC side default to 100 connections in total and 3 per public IP (--rpc-max-connections-per-public-ip), which is one reason a busy public node rarely falls over.
Ports 18082 and 18083: ZMQ
ZMQ is a second RPC interface, used mostly by software that wants to be notified of new blocks and transactions instead of polling.
- 18082 is the default ZMQ RPC port (
--zmq-rpc-bind-port). It stays on localhost unless you confirm otherwise with--confirm-zmq-rpc-external-bind. Since 0.18.5.0 there is also--restricted-zmq-rpc. - 18083 is the conventional address for ZMQ pub, the push feed. P2Pool needs it: its README starts
monerodwith--zmq-pub tcp://127.0.0.1:18083and says the option "is required for P2Pool to work properly".
If you do not use P2Pool or a similar tool, you can turn ZMQ off with --no-zmq.
Testnet and stagenet
Each test network shifts the first digits: 28080/28081/28082 for testnet and 38080/38081/38082 for stagenet. monerod --stagenet picks these automatically, and wallets need --stagenet too. That is why a stagenet wallet pointed at port 18081 never connects. Our stagenet guide covers test networks in practice.
P2Pool ports
If you mine with P2Pool, your node needs 18080 and the ZMQ feed, and P2Pool itself needs its own P2P port: 37889 for the main sidechain, 37888 for mini and 37890 for nano. The P2Pool README asks you to "check that ports 18080 (Monero p2p port) and 37889/37888/37890 (P2Pool default/mini/nano p2p port) are open in your firewall". XMRig then connects to P2Pool's stratum on 3333, which only your miners need to reach. See our P2Pool mini vs main vs nano comparison.
Tor and I2P ports
Tor and I2P do not need any port open on your router, because the hidden service connects outward. You map a local port to the onion service in your Tor config and tell monerod about it with --anonymous-inbound; the documentation's example uses 127.0.0.1:18084. For broadcasting your own transactions over Tor, --tx-proxy tor,127.0.0.1:9050 uses Tor's SOCKS port 9050. Our Monero over Tor guide has the full setup.
Firewall examples
On a Linux node with ufw, a typical private node needs only:
sudo ufw allow 18080/tcp
A public node that serves wallets adds:
sudo ufw allow 18089/tcp
And a P2Pool mining box adds its sidechain port, for example:
sudo ufw allow 37888/tcp
Never add 18081/tcp to that list unless you know exactly why. If you need remote access to the full API, use an SSH tunnel:
ssh -N -L 18081:127.0.0.1:18081 user@your-node
Your laptop's wallet then connects to 127.0.0.1:18081 as if the node were local.
Checking which ports your node actually uses
ss -tlnp | grep monerod(Linux) lists the portsmonerodis listening on.- In the
monerodconsole,statusshows the number of outgoing and incoming connections: "8(out)+0(in)" means nobody can reach your P2P port from outside. print_cnlists each connection and whether it was incoming or outgoing.
Our monerod commands cheat sheet lists the rest.
Common port problems
| Symptom | Likely cause |
|---|---|
| "Failed to bind IPv4" at start | Another monerod (or the GUI's node) already uses the port |
| Always "0(in)" connections | 18080 not forwarded on the router, or blocked by the firewall |
| Remote wallet cannot connect | Wallet uses 18081 but only 18089 is exposed, or the other way round |
| Stagenet wallet will not connect | Wallet not started with --stagenet, or wrong port (38081) |
| P2Pool says it cannot reach the node | --zmq-pub missing or pointing at a different port |
If a node refuses to start at all, our guide to a Monero daemon that fails to start goes through the other causes. For a wallet that connects but does not sync, see Monero wallet not syncing.
The same ports in a config file
Long command lines are easy to get wrong. monerod reads bitmonero.conf from its data directory, or any file given with --config-file, using the same option names without the dashes. A home node that serves wallets on the LAN and feeds P2Pool might use:
# ~/.bitmonero/bitmonero.conf
p2p-bind-port=18080
rpc-bind-ip=127.0.0.1
rpc-bind-port=18081
rpc-restricted-bind-ip=0.0.0.0
rpc-restricted-bind-port=18089
confirm-external-bind=1
zmq-pub=tcp://127.0.0.1:18083
prune-blockchain=1
Value-less options such as confirm-external-bind take =1. After a change, restart the daemon with exit and start it again; settings in the file are only read at start. If you run the node under systemd, the Monero documentation's systemd guide points the service at a config file in exactly this way.
Ports when you run more than one node
Running mainnet and stagenet side by side is easy because their ports never collide: 18080/18081 and 38080/38081. Two mainnet nodes on one machine are different: the second needs its own --data-dir, its own --p2p-bind-port and --rpc-bind-port, and --zmq-rpc-bind-port or --no-zmq, otherwise it stops at start because the ports are taken. The documentation's example for a second P2P port is --p2p-bind-port=48080.
Our recommendation
For node operators who want release notes and security alerts in one place, these Telegram channels are worth following:
- cryptoresearch@cryptoresearchOPEN@cryptoresearch: research and explainers
- BitcoinInsightsDaily@BitcoinInsightsDailyOPEN@BitcoinInsightsDaily: mining and infrastructure notes across networks
FAQ
What port does a Monero node use?
18080 for peer-to-peer connections and 18081 for the RPC API on mainnet. Testnet uses 28080/28081 and stagenet 38080/38081.
What is port 18089 in Monero?
It is the port most public nodes use for restricted RPC. It is a convention: you set it yourself with --rpc-restricted-bind-port 18089.
Do I need to open port 18080?
No. Your node syncs through outgoing connections. Opening 18080 lets other nodes connect to you, which helps the network and gives you more peers.
Should I open port 18081?
No. 18081 is the full administrative API. Keep it on localhost and expose a restricted port, or use an SSH tunnel.
Does monerod still use UPnP?
No. UPnP support was removed in Monero 0.18.5.0, so forward the P2P port on your router yourself if you want incoming connections.
Which port does P2Pool need?
37889 for the main sidechain, 37888 for mini, 37890 for nano, plus 3333 for your own miners and a --zmq-pub feed from monerod, usually on 18083.
