首页 文章

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

提问于
浏览
0

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

我设置了以太坊私有区块链,其步骤为https://github.com/ethereum/go-ethereum/wiki/Connecting-to-the-network

第一个节点已经启动了基本参数,如:

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

已使用第一个节点enode地址的bootNodes启动本地网络中的第二台PC

即使在同一个网络中,这些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

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

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

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

相关问题