Port 8333 is the Bitcoin mainnet peer-to-peer port. Full nodes listen on port 8333 to relay transactions and blocks to other nodes. Running a Bitcoin node on port 8333 is resource-intensive (500+ GB blockchain, significant bandwidth). Testnet uses port 18333. Port 8333 is not a security risk – it serves only the P2P protocol.
Port Number
8333
Protocol
TCP
Service
Bitcoin P2P Network
Range
IANA Registered (1024–49151)
Show peer count and how your node is reachable (verify port 8333 is advertised)
bitcoin-cli getnetworkinfo | jq '{connections, localaddresses}'Count connected peers (healthy node: 8-20 outbound, up to 125 inbound)
bitcoin-cli getpeerinfo | jq '.[].addr' | wc -lVerify only P2P (8333) is exposed, RPC (8332) is closed from outside
nmap -p 8332,8333 --open targetCheck sync status (1.0 = fully synced)
bitcoin-cli getblockchaininfo | jq '{blocks, headers, verificationprogress}'bitcoin-cli getpeerinfo | jq '.[].addr'
bitcoin.conf: port=8333
nmap -p 8333 --script bitcoin-info targetBitcoin was released by Satoshi Nakamoto on January 3, 2009. Port 8333 was hardcoded in the original Bitcoin software as the mainnet P2P port. The choice appears arbitrary (no known significance). Testnet uses 18333 (10000 + 8333). The P2P protocol has evolved significantly: version handshake, compact blocks (BIP 152, 2016), Erlay (2023) for bandwidth-efficient transaction relay, and v2 encrypted transport (BIP 324, 2023) which encrypts all P2P traffic on port 8333.
Is it safe to expose port 8333 to the internet?
Yes. Port 8333 serves only the Bitcoin P2P protocol – it cannot access your wallet, private keys, or funds. Exposing 8333 makes you a full node that helps the network (relays blocks/transactions to other nodes). The dangerous port is 8332 (JSON-RPC) which controls wallet operations – that must stay on localhost only. This distinction is the single most important thing to understand about Bitcoin node security.
What is BIP 324 (v2 transport) and does it change port 8333?
BIP 324 (merged in Bitcoin Core 26.0, 2023) encrypts all P2P communication on port 8333 using the Noise Protocol Framework. Same port, but traffic is no longer plaintext. Benefits: ISPs cannot see you run a Bitcoin node (just encrypted TCP on 8333), prevents packet injection/modification, and makes eclipse attacks harder. Nodes auto-negotiate v2 when both peers support it.