以太坊私人区块链:同龄人无法通过互联网看到对方

时间:2017-07-07 06:11:32

标签: ethereum

这可能是一个常见的问题,在互联网上有许多答案,但我无法使其工作,所以请帮助提供一些提示

我使用https://github.com/ethereum/go-ethereum/wiki/Connecting-to-the-network

中的步骤设置以太坊私有区块链

第一个节点已使用基本参数启动,如:

geth --datadir "firstNode" --identity "firstNode" --networkid 65535000 --rpc --nat "any" --rpccorsdomain "*" console

本地网络中的第二台PC已经启动了第一个节点的enode地址

的bootNodes

即使在同一个网络中,这些PC也没有看到对方使用admin.peers cli, 相反,我看到外部互联网的其他enode

当我尝试将我的第三台PC(我的笔记本电脑)从互联网连接到我的同一网络的私人区块链(比如65535000)时

我认为我只需要一个24/7运行节点作为bootnode,以便其他PC可以从该引导节点开始,对等体将自动找到自己,就像许多文档所说的那样。但实际上我不能形成一个私人连锁进行测试,我尝试了很多解决方案,但问题仍然存在,我现在挖掘的是其他来自互联网的块,而不是我的块

我有什么选择吗?

checked: 
- my internet router open the uPNP by default 
- the two pc need to addPeer(enode address) manually to see each others, without manual peering, they could not find themselves even they are boot up with the bootnodes from geth cli at startup
- from outside, i'm trying to peer with my local private chain by connecting to the 1st node with the public IP (check on router) on enode address, but doesn't help

我现在很困惑,不知道到底要查找什么

感谢您的帮助

1 个答案:

答案 0 :(得分:0)

您使用哪个工具来构建此应用程序?

我个人在IBM Bluemix遇到了这个问题,无法通过互联网发现同行,但是在bluemix中我找到了这个解决方案

  
    

在“网络”选项卡下的“区块链”仪表板上,每个验证对等体的面板右侧都会显示操作按钮。如果对等体已停止,则将启动其中一个操作。选择该按钮。如果您使用的是Hyperfabric,那么您应该考虑类似的设置。