I have been working on trying to run a geth node on my home server (FreeBSD jail on a freenas) and setting up my laptop geth to attach to the rpc to save space on my laptop. I have confirmed that the geth node on the server works and I can connect locally on the jail through geth attach http://localhost:8545. However, when I try to connect to the node through my windows laptop using geth.exe attach http://XXX:8545 I get the error:

Fatal: Failed to start the JavaScript console: api modules: invalid character 'i' looking for beginning of value.

Has anyone tried something similar or know why this may be happening?

1 Answer 1


In geth 1.8, if you're using a name instead of IP to attach to, you need to set the rpcvhosts option when starting geth:

geth --testnet console --light --rpc --rpcport 33000 --rpccorsdomain "*" --rpcaddr "" --rpcapi "db,eth,net,web3,personal" --rpcvhosts=yourDomainHere.com

  • This fixed the problem for me. I was using the jail hostname to connect through the local network. Thanks!
    – veekta
    Commented Feb 18, 2018 at 0:53

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.