I- IRI full node deployment with static neighbors :

I.1- Installation

We’re going to, in this section, deploy IRI, IOTA Reference Implementation. IRI is based on Java, but you don’t need to learn this language to run a full node, we’ll just clone this project: https://github.com/iotaledger/iri.

First, make sure you have java and maven installed and JAVA_HOME set. Then install the latest version of IRI on your computer through those commands :

git clone https://github.com/iotaledger/iri

cd iri

mvn clean compile && mvn package

You have successfully installed iri, you now need some statics neighbors addresses in order to run your full node. I recommend you to have 4,5 neighbors on basic configuration (4gb RAM, 1/2 cores), less than 3 and your node will be too slow and not more than 7.

First, let’s create an ini file to store all command line options we’ll need. It’s the easier way to update your neighbor’s list.

cat << "EOF" | sudo tee iota.ini

[IRI]

PORT = 14265

UDP_RECEIVER_PORT = 14600

TCP_RECEIVER_PORT = 15600

API_HOST = 0.0.0.0

IXI_DIR = ixi

HEADLESS = true

DEBUG = false

TESTNET = false

DB_PATH = mainnetdb

RESCAN_DB = false



REMOTE_LIMIT_API = "removeNeighbors, addNeighbors, interruptAttachingToTangle, attachToTangle, getNeighbors, setApiRateLimit"



NEIGHBORS =

EOF

In the bottom of the file, you can see the NEIGHBORS value, for now, it’s empty so starting IRI now won’t work. You need to add your neighbor’s addresses here.

Take now a look at the port list, we have both UDP and TCP receiver port. In order of having a working neighbor, you need both to add you to your list of neighbors. You can send to your neighbors one of your node addresses :

#Many neighbors want to use UDP only so you can only note this one

udp://your_ip:14600 tcp://your_ip:15600

I.2- Searching Neighbors

Now let’s find some neighbors to add. Don’t panic it’s not that hard, you just need to ask for neighbors on discord (not longer slack): https://discord.gg/GMVXSvM.

Once you are on the discord, go in #rank-yourself and write the command !rank fullnode. You’ll join fullnode.

You’ll see a new text channel named #nodesharing. Ask for neighbors there, there is a lot of people asking for neighbors there every day.