When is the geth.ipc file produced?

  • I'd like to access geth.ipc file in order to connect geth via IPC. I've got an advice and it suggested me to access geth.ipc, but I've not found it on my mac. Could you tell me when that file is produced? Btw, I installed go-ethereum by git as follows.

    git clone https://github.com/ethereum/go-ethereum

    The image shows my Ethereum directory. Doesn't it contain geth.ipc right? enter image description here

  • Maran

    Maran Correct answer

    5 years ago

    The IPC file is only present when Geth is actually running. So be sure to start Geth and you should see a message like.

    I0219 09:45:48.128503 node/node.go:290] IPC endpoint opened: /Users/username/Library/Ethereum/geth.ipc

    The location displayed here depends on your operating system. These are the other options.







    Thx Maran. But, I cannot find it on ~/Library/Ethereum. Could you tell me when the dierectory(~/Library/Ethereum) was installed? When I did `git clone https://github.com/ethereum/go-ethereum`?

    Did you run Geth yet? It needs to be run in order to create the folders.

    I did. It seems that, because I didn't update ethereum, the geth.ipc didn't exist on my mac. Now, I'm running brew upgrade.

    I've updated question.I've checked Ethereum directory after `brew update && brew upgrade` and `brew update && brew reinstall ethereum` . However, it contains geth.ipc. Should I reinstall Ethereum?

    Please start Geth and keep it running. The file should be there.

    The data for Windows is wrong, that folder is used to store the blockchain data. But the correct path for ipc is `\\.\pipe\geth.ipc`.

License under CC-BY-SA with attribution

Content dated before 7/24/2021 11:53 AM

Tags used