Introduction
If new nodes join using your Boot Node address the new node will see your node first. Hence, having your own custom Boot Node Address is an easy way to make your node see more peers.
There are 2 possible Boot Node Address formats:
- IP4
- DNS
Let’s begin 😎👍
IP4 – Easy
Get {NODE_IP}
Go to Node Terminal and run curl
command to get IP address of the node:
curl https://ipinfo.io/ip
Get {PORT}
Use the port you have enabled for your node. You can use ufw
command to remember OR check your router settings:
sudo ufw numbered
Get {ACCOUNT_ID}
Run curl
command:
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "system_localPeerId", "params":[]}' http://localhost:9945
Your account ID should look something like:
12D3Koo...4gdKDRf
Put it all Together
Plug the results in the following format:
/ip4/{NODE_IP}/tcp/{PORT}/p2p/{ACCOUNT_ID}
The final result should look something like this:
/ip4/192.168.1.1/tcp/30334/p2p/12D3KooWF9SWxz9dmy6vfndQhoxqCa7PESaoFWEiF8Jkqh4xKDRf
PM the final output to one of the admins in ghostWhales.
DNS – Medium Difficulty
Get {DOMAIN}
First you must get IP of your Node. Then you must point that IP address to a domain name
Get {NODE IP}
Go to Node Terminal and run curl
command to get IP:
curl https://ipinfo.io/ip
Get {DOMAIN}
Go to DYNU and create an account using burner email address. Go to DDNS settings and create a domain that points to your IP, for example:
crazymf.mwire.org --> {NODE IP}
Now you should have {DOMAIN}.
Get {PORT}
Use the port you have enabled for your node. You can use ufw
command to remember OR check your router settings:
sudo ufw numbered
Get {ACCOUNT_ID}
Run curl
command:
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "system_localPeerId", "params":[]}' http://localhost:9945
Your account ID should look something like:
12D3Koo...4gdKDRf
Put it all Together
Plug the results in the following format:
/dns/{DOMAIN}/tcp/{PORT}/p2p/{ACCOUNT_ID}
The final result should look something like this:
/dns/bootnode69.chain.ghostchain.io/tcp/30334/p2p/12D3KooWF9SWxz9dmy6vfndQhoxqCa7PESaoFWEiF8Jkqh4xKDRf
PM the final output to one of the admins in ghostWhales.