Skip to content

Running your Node over Tor#

Tor is a network that helps you anonymize your internet traffic by routing it through a series of volunteer-operated servers. We'll guide you through the process of setting up Tor on your node.

If you have Tor installed, simply edit your configuration template to bind your node's services to the Tor-enabled addresses.

scorex.network.bindAddress = "127.0.0.1:9030"
scorex.restApi.bindAddress = "127.0.0.1:9053"

Assuming you have Tor installed and running with the above confirmation, all you need to do is run with the DsocksProxyHost and DsocksProxyPort parameters that ensure that your node's traffic is routed through the Tor network.

java -jar -DsocksProxyHost=localhost -DsocksProxyPort=9050 -Xmx4G ergo-*.jar --mainnet  -c  ergo.conf 

Example Configuration File#

ergo {
    node {
        mining = false

        utxo {
           utxoBootstrap = true
           storingUtxoSnapshots = 0
        }
        nipopow {
           nipopowBootstrap = true
           p2pNipopows = 2
        }
    }

}

scorex {
    restApi {
        apiKeyHash = "324dcf027dd4a30a932c441f365a25e86b173defa4b8e58948253471b81b72cf"
        bindAddress = "127.0.0.1:9053"
    }
    network {
        bindAddress = "127.0.0.1:9030"
        # Use this if you want to bind it to a public address
        #declaredAddress = ""
    }
}