-snip-
Hi guys,
Thanks for your answers. I edited an old scipt and it worked. But I have another question. I have a VPS and it has more than one IP. I know that its not possible multiple node from 1 Ip address. But in my case with a mulitple IP VPS, is it possible to run multiple hallmarked node from one working horizon instance? If so how?
Thanks in advance.
I couldnt get any answer.I think people missed my question. Is there any way to do this or just I forget it?
Solution to your query is a little 'tricky'. To run multiple node from same VPS with more then one IP address, copy HZ node software different folder for different IP address.
Say, you have IP address 192.168.1.5, 6,7,8,9.
Create 5 different folder and modify 'conf/nhz-default-properties' file on each folder. In 'conf/nhz-default-properties' file look for option:
For IP 192.168.1.5 in folder 5:
nhz.peerServerHost=192.168.1.5
nhz.apiServerHost=192.168.1.5
nhz.myAddress=192.168.1.5
nhz.apiServerHost=192.168.1.5
nhz.uiServerHost=192.168.1.5
For IP 192.168.1.6 in folder 6:
nhz.peerServerHost=192.168.1.6
nhz.apiServerHost=192.168.1.6
nhz.myAddress=192.168.1.6
nhz.apiServerHost=192.168.1.6
nhz.uiServerHost=192.168.1.6
do it same for 7,8,9.... all
All other option should be same in config file.
now 'cd' to every folder and run node script.
like:
cd /home/userhome/5
screen -d -m -S HZNode5 ./run.sh
cd /home/userhome/6
screen -d -m -S HZNode6 ./run.sh
cd /home/userhome/7
screen -d -m -S HZNode7 ./run.sh
and same for 8 , 9 ....all folder.
Congratulation! you are running HZ Node on every IP address!
NB: Make sure your 'iptables/firewall' rules allow incoming connection on tcp 7774 port on every IP address on VPS. Above description was for 'Linux' box only. Install 'screen' on your VPS to above solution works!