JSON-RPC HTTP API of Ethereum nodes (Geth, Hardhat, Anvil, Ganache).
JSON-RPC HTTP API of Ethereum nodes (Geth, Hardhat, Anvil, Ganache).
Do not expose to the internet. Exposed nodes with unlocked accounts were drained by scanners; bind to localhost and never unlock accounts on an RPC-exposed node.
Port 8545 is in the registered range and has no IANA assignment. The usage above is unofficial but widespread.
sudo ss -tlnp 'sport = :8545'sudo lsof -nP -i :8545sudo netstat -tlnp | grep ':8545 'netstat -ano | findstr :8545Get-NetTCPConnection -LocalPort 8545 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 8545Test-NetConnection HOST -Port 8545sudo ufw deny 8545/tcpsudo iptables -A INPUT -p tcp --dport 8545 -j DROPsudo nft add rule inet filter input tcp dport 8545 dropNew-NetFirewallRule -DisplayName 'Block TCP 8545' -Direction Inbound -Protocol TCP -LocalPort 8545 -Action BlockAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.