As is clear from the documentation, web3.js is meant to control a local node.
If I wanted to remote a control node, am I looking at hacking web3.js or geth?
It seems that I can achieve remote control if I do admin.startRPC("0.0.0.0", "port-goes-here") but I'm not sure that's the right way to go about it.
Thank you.
0 ·
Comments
geth --rpc --rpcaddr "0.0.0.0" --rpcport port--rpccorsdomain "*" console
or you can strart rpc withadmin.startRPC("0.0.0.0", "port-goes-here", "*")
(dont forget the * thats the trick which will allow outside domains to connect to your node)then initialize web3 as follows
var web3 = require('web3'); web3.setProvider(new web3.providers.HttpProvider('http://ip:port/'));
@kvhnuke: that's what I ended up doing!