Skip to content

Setup different port loopback IP for bind for the other masternodes.

Coleganet edited this page Dec 13, 2021 · 1 revision

This is how my remote hilux.conf looks like on two masternodes on the same server:

We setup one copy in /root/.hiluxcore

cp -R /root/.hiluxcore2 /root/.hiluxcore

We generate and changethe masternode key

nano /root/.hiluxcore/hilux.conf

`# JSONRPC``

rpcuser=your rcp use

rpcpassword=your password

rpcallowip=127.0.0.1

masternodeaddr=my external ip:port

bind=127.0.0.4

bind=1,2,3,4 yourfirst external ip or the ip rgister to the node

`externalip= 1,2,3,4 the ip we write before``

rpcport=9945

discover=0

rpcallowip=127.0.0.1

listen=1

server=1

daemon=1

logtimestamps=1

maxconnections=256

masternode=1

staking=1

masternodeprivkey= Your masternode private ip

#we add some nodes for speed up addnode=135.181.183.38:7979

addnode=138.201.4.24:7979

addnode=185.13.113.250:7979

addnode=188.122.212.138:7979

addnode=192.181.194.213:7979

addnode=51.178.179.75:7979

addnode=94.233.46.4:7979

we save and done here.

Second Masternode Setup

nano /root/.hiluxcore2/hilux.conf

# JSONRPC rpcuser=your rcp use

rpcpassword=your password

rpcallowip=127.0.0.1

masternodeaddr=my external ip:port

bind=127.0.0.2

bind=1,2,3,4 yourfirst external ip or the ip rgister to the node

externalip= 1,2,3,4 the ip we write before

rpcport=9935

discover=0

rpcallowip=127.0.0.1

listen=1

server=1

daemon=1

logtimestamps=1

maxconnections=256

masternode=1

staking=1

masternodeprivkey= Your masternode private ip

#we add some nodes for speed up

addnode=135.181.183.38:7979

addnode=138.201.4.24:7979

addnode=185.13.113.250:7979

addnode=188.122.212.138:7979

addnode=192.181.194.213:7979

addnode=51.178.179.75:7979 addnode=94.233.46.4:7979

and done

Testing the setup : First we look we not have any Hilux sessions

Command: pkill hiluxd

We start first Node:

hiluxd -datadir=/root/.hiluxcore -conf=hilux.conf -daemon

We start Second Node:

hiluxd -datadir=/root/.hiluxcore2 -conf=hilux.conf -daemon