How to connect two different nodes in private ethereum network

–1 vote
I have created two nodes with 5 accounts in each node. Now, I want to send ethers from an account in one node to an account in the other node. For this, I need to have a connection between these two nodes. How to connect these nodes?
Jan 10, 2019 in Blockchain by digger
• 26,740 points
2,908 views

1 answer to this question.

0 votes

To connect two nodes, you can use the bootnode feature. Once you have made the nodes ready, you have to start a bootstrap node. The bootstrap node is used so that other nodes in the network can find your node. To create the bootnode, run the following command:

bootnode --genkey=boot.key
bootnode --nodekey=boot.key

After this, an enode URL  will be displayed on the screen. This URL is used by other nodes to connect to this node.

To connect to this node, run the following command with the right values of your network:

geth --datadir path/to/custom/data/folder --networkid <network id> --bootnodes <bootnode-enode-url-from-above>

answered Jan 10, 2019 by Omkar
• 69,220 points

Related Questions In Blockchain

–1 vote
1 answer

How to change default account in private ethereum network?

First list the accounts: > eth.accounts NOTE: Even ...READ MORE

answered Jan 10, 2019 in Blockchain by Omkar
• 69,220 points
1,882 views
0 votes
1 answer

How to check peer connectivity in ethereum private network?

You can use the net module to check the ...READ MORE

answered Jan 10, 2019 in Blockchain by Omkar
• 69,220 points
1,576 views
0 votes
1 answer

How to get IP address of peer connected in private ethereum network?

To get these details, you can use ...READ MORE

answered Jan 10, 2019 in Blockchain by Omkar
• 69,220 points
3,142 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,947 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,473 views
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

I have been working with Interacting a ...READ MORE

Mar 6, 2019 in Blockchain by saeedi
• 120 points

edited Mar 6, 2019 by Omkar 2,511 views
0 votes
1 answer

How to get account with ethers by default in ethereum private network?

Have you created an account before allocating ...READ MORE

answered Jan 9, 2019 in Blockchain by Omkar
• 69,220 points
1,719 views
–1 vote
1 answer

How to import an account in private ethereum network?

 When you create a new account, the ...READ MORE

answered Jan 9, 2019 in Blockchain by Omkar
• 69,220 points
1,585 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP