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?