I am trying to setup a private ethereum network. I started two nodes in the same machine (Windows 7) in two different ports.
I am unable to add one node as the peer of the other node. What I have done so far is this.
Start two nodes with same network id, different data dirs, and different ports.
Find the node address of one node.
> admin.nodeInfo.enode
"enode://5d272e8bee6d29dfff6313999a4a2c3d8109ae6f3eb103480f4536c0542549b9fa12a8d8ae5ebee9c4db55cab553693b04eedbc9b29f35bbc0af1956231b42b4@0.0.0.0:30303"
Add the node to the other peer.
> admin.addPeer("enode://5d272e8bee6d29dfff6313999a4a2c3d8109ae6f3eb103480f4536c0542549b9fa12a8d8ae5ebee9c4db55cab553693b04eedbc9b29f35bbc0af1956231b42b4@192.168.1.5:30303")
true
But, if I check peer information of the second peer, it shows that it doesn't have any peers.
> admin.peers
[]
Also, I tried to add the first peer as a static peer for the second node by adding node address to data/static-nodes.json
, but still admin.peers
returns an empty list.
Does anyone know how to fix this?