How can I connect EthereumMist with Private-Network on mac

时间:2018-02-03 10:59:06

标签: ethereum go-ethereum geth

I made Genesis block and turned on with geth like this

geth --identity "PrivateNetwork" --datadir "/Users/username/dev/ethereum/data" --port "30303" --rpc --rpcaddr 0.0.0.0 --rpcport "8123" --rpccorsdomain "*" --nodiscover --networkid 1900 --nat "any" --rpcapi "db,eth,net,web3,miner" console

and... checked with this command: eth.accounts'&'eth.getBalance(eth.accounts[0])

It works, however I don't know how to connect with mist

I had tried /Applications/Mist.app/Contents/MacOS/Mist --rpc http://localhost:8123 but what I can see is only this error message below

Error starting up node and/or syncing Error: Couldn't start swarm process. at Timeout.error [as _onTimeout] (/Applications/Mist.app/Contents/Resources/app.asar/node_modules/swarm-js/lib/swarm.js:451:23) at ontimeout (timers.js:386:14) at tryOnTimeout (timers.js:250:5) at Timer.listOnTimeout (timers.js:214:5)"

I thought geth is CLI client and Mist is GUI client for ethereum net I'm not sure even It is right

Do I need to turn on both of them? or turn on only one? please help me!

2 个答案:

答案 0 :(得分:0)

确保两个应用程序都不使用相同的rpcport。为每个端口使用不同的端口。

答案 1 :(得分:0)

我猜你给错了ip地址。因此,当您运行该命令时,您将在下面的gth控制台上找到。

  

INFO [01-31 | 10:32:06] IPC端点打开:   /Users/divum/Desktop/local-network/geth.ipc INFO [01-31 | 10:32:06]   HTTP端点已打开:http://127.0.0.1:8545

现在尝试

  

/Applications/Mist.app/Contents/MacOS/Mist --rpc [HTTP_END_POINT_URL]

将HTTP_END_POINT_URL替换为您的日志http端点网址。