Not connecting to private blockchain from another node on the network

by Pt.AR   Last Updated November 01, 2018 09:28 AM

I have a Desktop and Laptop.I have configured private blockchain on my Desktop(node1) and able to sync with it from Node2 Laptop.But I am not able to get connected to the contract deployed on Node 1 via a web page i created.

web3.version.getNetwork((err, netId) this function throws error Invalid JSON RPC response.

I am able to access the contract from web page located on my Desktop.

First Node geth --identity "Node1" --rpc --rpcport "8545" --rpccorsdomain "*" --datadir <data-path-1> --port "<defaultport>" --rpcapi "db,eth,net,web3,personal,miner" --networkid 123 console 2>> logfile_1

Second Node geth --identity "Node2" --rpcport "8545" --rpcaddr "xxx.xxx.xx.xx" --rpccorsdomain "*" --datadir <data-path-2> --port "<defaultport>" --rpcapi "db,eth,net,web3,personal,miner" --networkid 123 console 2>> logfile_2



Related Questions


Access private blockchain from another PC/Laptop?

Updated October 23, 2018 07:28 AM

Automatically Run Contract

Updated March 31, 2019 09:28 AM

Public smart contract that calls Private contract API

Updated January 29, 2019 10:28 AM