Using Windows, when I started Geth with:
geth --rpc --rpcaddr 192.168.1.9 --rpcport 8545 --rpcapi "eth,net,web3,personal" --datadir C:\Users\BulldogBud\AppData\Roaming\Ethereum\testnet\chaindata --networkid 3 console
Receiving:
I1206 11:55:12.857903 node/node.go:410] HTTP endpoint opened: http://192.168.1.9:8545
I opened another Console typing:
curl -X POST --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":1}' http://192.168.1.9:8545
Receiving :
{"jsonrpc":"2.0","error":{"code":-32600,"message":"invalid character '\'' looking for beginning of value"}}
How can I fix this issue? Thank you in advance!
EDIT after several attempts, giving:
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_coinbase","params":[],"id":1}' http://localhost:8545
the new error message is:
curl: (7) Failed to connect to localhost port 8545: Connection refused
Any suggestion?
geth --rpc --rpcapi"eth,net,web3,personal"
The --rpcport defaults anyway. Don't know about the rest of the params you use to start geth