TUTORIAL
Now Reading
Trick “fixed Port” Nodes

Trick “fixed Port” Nodes

THE PROBLEM

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.

THE SOLUTION

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 Script and Installing Masternode as usual.
Masternode with fixed port 37001 is installed and running.

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

Enter the daemon name ( blocknode ), the number of Nodes you wanna install and a starting Port for the standard Port and the RPCPORT ( best is to use numbers like 1000,2000,3000,4000,etc. )

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.

Each Node will be installed/duplicated based on the first Node installed. The Blockchain will be duplicated and all Nodes will be synced up to the same Block like the main Masternode installed.

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?

All use “externalip=” with the correct Port of the default Node but use different “port=” and “rpcport=” for each individual Node. I am really sure it is not supposed to work like this because actualy we are “tricking” the Network a bit.

CHECK THE BLOCKCOUNT/MASTERNODE STATUS

./bin/blocknode-cli_ALIAS.sh getblockcount
./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:

ll /root/bin

This shall remove something like this

LEAVE THOSE GUYS A FOLLOW

Make sure you follow @Grimer1234 and @CryptoCatOkiOki on Twitter !

THIS TUTORIAL WORKED FOR YOU?

Scan to Donate Bitcoin to pos-monkey
Did you like this?
Tip pos-monkey with Bitcoin
What's your reaction?
Love It
100%
Interested
0%
Meh...
0%
What?
0%
Hate It
0%
Sad
0%
About The Author
pos-monkey