我正在运行带有以下标志的ethereum/client-go docker映像:
docker run -p 8545:8545 ethereum/client-go --rpcapi personal,db,eth,net,web3 --rpc --rpcaddr 0.0.0.0 --rpccorsdomain * --rinkeby
此映像在机器 A 上运行,我可以查询其中的 RPC。但是当我尝试从机器 BI 查询它时,会收到以下响应:
要求:
curl -X POST http://<machine_A_address>:8545 -H "Content-Type: application/json" --data '{"jsonrpc":"2÷.0","method":"eth_coinbase","params":[],"id":64}' --verbose
回复:
< HTTP/1.1 403 Forbidden
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Wed, 18 Apr 2018 14:58:44 GMT
< Content-Length: 23
<
invalid host specified
* Connection #0 to host ... left intact
如何从机器 B 查询托管在机器 A 上的以太坊客户端?我在哪里可以找到以太坊客户端日志以便调试它?