Trick “fixed Port” Nodes
Running a Masternode is cheap in the current market situation. Hosting a Masternode is kinda expensive. If Masternodes have “flexible” Ports and can be hosted multiple times on the same Server ( MONK, BITG, … ) it gets already way cheaper to host them. Some Masternodes require a “fixed” Port and each guide tells you “You can only run 1 Masternode per Server”. Having a Masternode with fixed Port generating 5$ per Month compared to paying 5$ per Server per Month those Masternodes get really worthless since the risk of loosing money in this 30 days is way higher then making a couple of cents profit.
We played around with some guys on Discord and discussed about a solution to host multiple Masternodes on the same Server. We tried different possibilties and came up with a solution working for a lot of Masternode projects ( we tested DEV, BND, CAZ ).
The trick is to define all Masternodes in the “masternode.conf” with the same IP:PORT but different masternode genkey / tx id / tx output on the hot wallet.
On the cold wallets you have to edit the “blocknode.conf” , “deviant.conf” , etc… files on your virtual server.
In the next steps I will try to explain you step by step what needs to be modified. We also created a multiwallet script working for almost every project
STEP BY STEP EXPLANATION
We will use Blocknode as an example to demonstrate how you can run multiple Masternodes with fixed IP/PORT on the same instance.
INSTALL ONE NODE WITH THE DEFAULT COIN INSTALLER
Install the Masternode with the Coins script as usual.
DOWNLOADING THE SPECIAL SCRIPT
Copy / Paste the following Command into your Type-In and press ENTER
wget https://raw.githubusercontent.com/CryptoCatOkiOKi/GenericMultipleMNInstallerScript/master/generic_mn_setup.sh -O generic_mn_setup.sh && chmod 755 generic_mn_setup.sh && ./generic_mn_setup.sh
INSTALL THE NUMBER OF NODES
The Script will now start to install the number of Masternodes based on your settings. You can change “blocknode” for every coin Name. We tested a lot of PIVX forks and it shall work for most of them.
COPY / PASTE THE MASTERNODE.CONF LINES
We also generated all Lines you will require for your Masternode.conf at the HOT Wallet. We will also generate the Masternode Genkey for you.
As you can see in the following Screenshot all Masternode makes use of the same IP:PORT. You just have to replace the “txhash” “outputidx” at the end of the example Lines with the hashes and indexes of your transaction(s).
WHY IS IT WORKING?
CHECK THE BLOCKCOUNT/MASTERNODE STATUS
./bin/blocknode-cli_ALIAS.sh masternode status
Change “blocknode” to the coin you installed and make sure you enter this command from the root directory. Also make sure to change “ALIAS” to the names you defined for your Masternodes.
You can always check the filename with the following command:
This shall remove something like this
LEAVE THOSE GUYS A FOLLOW
Make sure you follow @Grimer1234 and @CryptoCatOkiOki on Twitter !