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('http://192.168.0.220:8042'));
192.168.0.220 ->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?