I'm running parity
with the --jsonrpc
flag which listens on port 8545
by default.
I'm trying to attach a geth
instance, like described in the the docs:
Attach a console to a running geth instance. By default this happens over IPC on the default IPC endpoint but when necessary a custom endpoint could be specified:
geth attach # connect over IPC on default endpoint geth attach ipc:/some/path # connect over IPC on custom endpoint geth attach http://host:8545 # connect over HTTP geth attach ws://host:8546 # connect over websocket
But I get a fatal error:
Fatal: Unable to attach to geth node - Invalid endpoint
This is my tested commands:
~ $ geth attach http://127.0.0.1:8545
Fatal: Unable to attach to geth node - Invalid endpoint
~ $ geth attach http://localhost:8545
Fatal: Unable to attach to geth node - Invalid endpoint
~ $ geth attach ws://localhost:8545
Fatal: Unable to attach to geth node - Invalid endpoint
How to attach geth to a local RPC on port 8545?