I am running an ethereum node remotely using a start-up shell script. The command in the shell-script is as follows:
/usr/bin/geth --testnet --rpc --rpcport "" --rpcaddr "0.0.0.0" --rpccorsdomain "*" || logger "Geth not running"
In my node app (just a portion of code here):
var Web3 = require('web3');
var web3 = new Web3(new Web3.providers.HttpProvider("
http://:"));
var accounts = web3.eth.accounts;
console.log("Accounts: "+accounts);
...............................................................
When I run:
geth account list
in the remote server, it shows two accounts.
What could be the reason the accounts are not showing in RPC?
Thanks!