DApp on Node2 accessing smart contract deployed by Node1

by Pt.AR   Last Updated November 01, 2018 12:28 PM

Node 1(Desktop) deployed a contract on private blockchain. From node2(Laptop),I want to interact with the contract.

But I failed at 'web3.version.getNetwork(err, netId)' function.This function throws json-rpc server error.

I am getting Network id value as undefined.But when i tried this on Node1 itself, it is working. To access json-rpc server from Node2, Do I have to configure anything on My Node2?



Related Questions


filterCreationErrorCallback is not a function

Updated June 25, 2018 11:28 AM

How to deploy a smart contract in a server?

Updated April 10, 2018 11:28 AM

Access private blockchain from another PC/Laptop?

Updated October 23, 2018 07:28 AM