There are two ways to configure the IRI node software. You can use commandline arguements or via an
java -jar iri.jar -p 14600
In order for IRI to be functional, you will need to find neighbors (see next section).
As such, you can connect to your neighbors with either protocol. In order to get the most out of IRI, we have also made a set of flags available for you.
|-c||Config INI file that can be used instead of CLI options. See more below||-c iri.ini|
|-p||This is a mandatory option that defines the port to be used to send API commands to your node.||-p 14800|
|-n||Neighbors that you are connected with will be added via this option.||-n "udp://188.8.131.52:14265 tcp://[2001:db8:a0b:12f0::1]:14265"|
|-u||UDP receiver port. Standard port is 14600||-u 14800|
|-t||TCP receiver port. Standard port is 15600||-t 14800|
|--testnet||Makes it possible to run IRI with the IOTA testnet||--testnet|
|--remote||Remotely access your node and send API commands||--remote|
|--remote-auth||Require authentication password for accessing remotely. Requires a correct username:hashedpassword combination||--remote-auth iotatoken:LL9EZFNCHZCMLJLVUBCKJ|
|--remote-limit-api||Exclude certain API calls from being able to be accessed remotely||--remote-limit-api "attachToTangle, addNeighbors"|
|--send-limit||Limit the outbound bandwidth consumption. Limit is set to mbit/s||--send-limit 1.0|
|--max-peers||Limit the number of max accepted peers. Default is set to 0 (mutual tethering)||--max-peers 8|
|--dns-resolution-false||Ignores DNS resolution refreshing||--dns-resolution-false|
You can also provide an ini file to store all of your command line options and easily update (especially neighbors) if needed. You can enable it via the --config flag.
Here is an example INI file:
[IRI] PORT = 14700 UDP_RECEIVER_PORT = 14700 NEIGHBORS = udp://my.favorite.com:15600 udp://184.108.40.206:14265 tcp://[2001:db8:a0b:12f0::1]:14265 IXI_DIR = ixi HEADLESS = true DEBUG = true TESTNET = true DB_PATH = db
To run IRI with this .INI file, given its named `iri.ini`, use this command:
java -jar iri.jar -c iri.ini