CLI
The CLI provides more control over your setup but requires configuring additional ports for the separate node and farmer components.
Network Architecture
Required Ports
| Port | Protocol | Direction | Component | Purpose | Impact if Blocked |
|---|---|---|---|---|---|
| 30333 | TCP | Inbound/Outbound | Node | Consensus P2P | Poor block propagation, missed PoT slots |
| 30433 | TCP | Inbound/Outbound | Node | DSN communication | Slow piece retrieval, reduced cache efficiency |
| 30533 | TCP | Inbound/Outbound | Farmer | Farmer P2P network | Missed challenges, reduced rewards |
| 9944 | TCP | Local only | Node | RPC for farmer-node communication | Never expose to internet |
Security Warning
RPC port 9944 should NEVER be exposed to the internet. This port contains sensitive APIs that could compromise your node. It should only be accessible locally or within your secure network.
Complete Setup Guide
Step 1: Gather Network Information
- Command Line Method
- Browser Method
# Get your public IP address
curl -s https://api.ipify.org
echo "Your public IP: $(curl -s https://api.ipify.org)"
# Get your local IP and gateway
# Linux/macOS:
ip route | grep default # Gateway
hostname -I | awk '{print $1}' # Local IP
# Windows PowerShell:
ipconfig | findstr "Default Gateway" # Gateway
ipconfig | findstr "IPv4 Address" # Local IP
Public IP Address:
- Visit whatismyip.com
- Note the IPv4 address shown
Local Network Info:
- Windows: Run
cmd→ typeipconfig - macOS: System Preferences → Network → Advanced
- Linux: Terminal →
ip addr show
Router IP (Gateway):
- Usually
192.168.1.1or192.168.0.1 - Check router label or network settings
Step 2: Router Port Forwarding
Access your router's admin panel and create these port forwarding rules:
| Rule Name | External Port | Internal IP | Internal Port | Protocol |
|---|---|---|---|---|
| Autonomys-Node-Consensus | 30333 | Your PC IP | 30333 | TCP |
| Autonomys-Node-DSN | 30433 | Your PC IP | 30433 | TCP |
| Autonomys-Farmer | 30533 | Your PC IP | 30533 | TCP |
Router Access
Common router admin URLs:
http://192.168.1.1http://192.168.0.1
Default credentials are often on the router label.
Step 3: Firewall Configuration
- Windows
- Linux
- macOS
PowerShell (Run as Administrator):
# Create firewall rules for CLI farming
New-NetFirewallRule -DisplayName "Autonomys Node Consensus" `
-Direction Inbound -Protocol TCP -LocalPort 30333 -Action Allow
New-NetFirewallRule -DisplayName "Autonomys Node DSN" `
-Direction Inbound -Protocol TCP -LocalPort 30433 -Action Allow
New-NetFirewallRule -DisplayName "Autonomys Farmer" `
-Direction Inbound -Protocol TCP -LocalPort 30533 -Action Allow
# RPC for local network only (adjust subnet as needed)
New-NetFirewallRule -DisplayName "Autonomys RPC Local" `
-Direction Inbound -Protocol TCP -LocalPort 9944 `
-RemoteAddress LocalSubnet -Action Allow
# Verify rules
Get-NetFirewallRule -DisplayName "Autonomys*" |
Format-Table DisplayName, Enabled, Direction, Action