S2 Configuration Quick Reference

Introduction

This guide covers the most frequently used configuration settings for running an Ixian S2 streaming node. For a complete list of all possible parameters, please see the full configuration reference.

Settings can be placed in a configuration file (e.g., ixian.cfg) or passed as command-line arguments, which will override the file settings.

Configuration File (ixian.cfg)

The file uses a key = value format.

Most Common Settings

ParameterExample ValueDescription
networkTypemainnetThe network to connect to (mainnet, testnet, or regtest). Must match the DLT network.
s2Port10235The main TCP port for S2 peer-to-peer communication.
apiPort8001The local port for the JSON-RPC API.
externalIp203.0.113.42Your node's public IP address. Critical for other nodes to connect to you.
apiAllowIp127.0.0.1Security: Whitelists an IP to access the API. Use multiple lines for multiple IPs.
apiBind127.0.0.1Security: Binds the API to a specific local IP. 127.0.0.1 is recommended for security.
addPeer192.168.1.10:10234The address of an initial node to connect to. Can be used multiple times.
logVerbosity14Sets logging detail (Info=2, Warn=4, Error=8). 14 is a good default (2+4+8).

Command-Line Arguments

These are the most common flags used when launching an S2 node.

FlagExampleDescription
-t, --testnetIxianS2.exe -tStarts the node on the testnet.
--networkTypeIxianS2.exe --networkType regtestExplicitly sets the network type: mainnet, testnet, or regtest. Must match the DLT network.
-p, --portIxianS2.exe -p 10235Sets the S2 P2P network port.
-a, --apiportIxianS2.exe -a 8001Sets the JSON-RPC API port.
-i, --ipIxianS2.exe -i 203.0.113.42Sets the external IP address.
-w, --walletIxianS2.exe -w myS2wallet.walSpecifies the path to the wallet file.
-n, --nodeIxianS2.exe -n 192.168.1.10:10234Connects to a specific DLT seed node.
-c, --cleanIxianS2.exe -cDeletes cache, log, and peer data files before starting.