I am using web3js, I've set up an ethereum node in my network in a laptop via mist, now I'd like to run a web3js script that uses that node as provider;
var PROVIDER = "192.168.1.40:8545" // I've also tried 30303 var web3 = new Web3(new Web3.providers.HttpProvider(PROVIDER)) web3.eth.getBalance(TARGET_WALLET_ADDRESS);
This throws error
CONNECTION ERROR: Couldn't connect to node 192.168.1.40:8545.
Port 30303 shows as open, while 8545 shows as filtered. Is there any configuration step I'm missing? I'm supposed to use port 8545 right?
Also, I have a question:
- Can I use the node if it's not fully synced? By use I mean get balance of an account and do transactions