I have installed a geth-node on raspberry pie. Raspberry pie is connected via Ethernet. Now I am trying to connect to this node via web3.js

    var ethWeb3 = new Web3(new Web3.providers.HttpProvider('')); ->is the address of device. (I connect so via terminal)

But if I check ethWeb3.isConnected(), it returns false.

My geth script is:

geth --identity "node1" --fast --networkid 42 --datadir /home/pi/ChainSkills/node --nodiscover --rpc --rpcport "8042" --port "30303" --unlock 0 --password "/home/pi/ChainSkills/node/password.sec" --ipcpath /home/pi/.ethereum/geth.ipc --dev

Where can be a mistake?

  • I connect to web application, where I try to run web3.js, so: localhost:9999
    – Lena
    Jul 22, 2018 at 15:25

1 Answer 1


Try adding when starting geth


Otherwise it's listening only on the localhost

geth --identity "node1" --fast --networkid 42 --datadir /home/pi/ChainSkills/node --nodiscover --rpc --rpcaddr --rpcport "8042" --port "30303" --unlock 0 --password "/home/pi/ChainSkills/node/password.sec" --ipcpath /home/pi/.ethereum/geth.ipc --dev

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.