I am currently using geth in windows and 1.9.10LTS version of geth.
I have to Open geth console, but when i try to implement geth console or geth attach or geth attach ipc:\\ .\pipe\geth.ipc it doesn't work. Shows an error given below.
Using geth attach
, you need to provide the IP:PORT
Example:
geth attach 'http://localhost:8501'
Your geth must provide RPC interface with something like this in the geth execution command:
--rpc --rpcaddr '0.0.0.0' --rpcport 8501 --rpcapi 'personal,db,eth,net,web3,txpool,miner,admin,clique'
geth attach "http:localhost:8545"
Commented
Jan 23, 2020 at 10:46
--ipcpath
in windows only accept the name of the pipe. For example if you launchgeth.exe --ipcpath julia
you can attach withgeth attach ipc:\\.\pipe\julia
. You are passing spaces,:
and\
in the ipcpath name so it might not work correctly.--ipcpath
, unless you have a reason, and use the default path. Launch geth withgeth --rinkeby --rpc --rpcapi="personal,eth,network,web3,net"
, then you can attach withgeth attach ipc:\\.\pipe\geth.ipc
.