HTTPfy

Port 8332 (Bitcoin JSON-RPC)

Bitcoin Core RPC interface (bitcoin-cli, wallets).

Registered (user) port, 1024-49151 TCP Peer-to-peer Localhost or LAN only

What port 8332 is used for

Bitcoin Core RPC interface (bitcoin-cli, wallets).

Security: should port 8332 be open?

Localhost or LAN only. Controls the node and wallet; bind to localhost and use rpcauth.

IANA assignment

Port 8332 is in the registered range and has no IANA assignment. The usage above is unofficial but widespread.

Check what is listening on port 8332

Linux: is anything listening on TCP 8332?
sudo ss -tlnp 'sport = :8332'
Linux / macOS: which process owns the port
sudo lsof -nP -i :8332
Older Linux / BSD (net-tools)
sudo netstat -tlnp | grep ':8332 '
Windows (Command Prompt)
netstat -ano | findstr :8332
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 8332 -State Listen | Select LocalAddress,OwningProcess

Test it from outside

From another machine
nc -vz -w 5 HOST 8332
From Windows
Test-NetConnection HOST -Port 8332

Block port 8332 in the firewall

ufw
sudo ufw deny 8332/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 8332 -j DROP
nftables
sudo nft add rule inet filter input tcp dport 8332 drop
Windows Firewall
New-NetFirewallRule -DisplayName 'Block TCP 8332' -Direction Inbound -Protocol TCP -LocalPort 8332 -Action Block

Related ports

All port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.