I've set up a private chain on computer A. I'm using geth and the following two command lines:
geth --identity "MyNodeName" --rpc --rpcport "8545" --rpccorsdomain "*"
--datadir Users/TestChain --port "30303" --rpcaddr "127.0.0.1" --
nodiscover --rpcapi "db,eth,net,web3,personal" --networkid 123 init
/Users/CustomGenesis.json
geth --identity "MyNodeName" --rpc --rpcport "8545" --rpccorsdomain "*"
--datadir Users/TestChain --port "30303" --nodiscover --rpcapi
"db,eth,net,web3,personal" --networkid 123 console
I want to connect another node/computer B to this chain, so it can send transactions/contracts to it. On both machines, I have installed Metamask.
For machine A, I Googled my public IP. Let's call it IP_A. Then on machine B, in MetaMask, I created a custom RPC as follows: IP_A:8545
But, it cannot connect to computer A, it says:
connecting to unknown private network.
and nothing happens after that.
Question: How can I resolve the above issue? How can I connect two computers using wifi and metamask?
Edit: Please see my other question here, I've answered this question as well. Thanks to @Achala Dissanayake.
--rpcaddr "[A's ip address]"instead of--rpcaddr "127.0.0.1" --– Achala Dissanayake Oct 12 '17 at 11:32