I have created a private blockchain network and added peers to that network using the admin.addPeers() command. But the problem is, in that method I have to give the local IP address of the system which can be changed at any moment and results in peer disconnection.
Can anyone suggest some other method that can be used so the I can have a stable connection between the peers of the network?

  • you need ip address in any cost , whether you connect locally or not.
    – Gopal ojha
    Commented Jul 3, 2018 at 6:11

1 Answer 1


It means that you need one static ip so that you connect with the node having same ip all the time.
You can do this by port forwarding or own static ip.

Enode is in the form of


[::] is for the ip. if you are connecting locally then it doesnot matter because your router will maintain this. In case of public, there should be public ip. ok now how it looks like :


This may help you.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.