I created a private ethereum network with 3 nodes kai i have also created a dapp. How i can connect my dapp with my private network?

Thank you!

1 Answer 1


Usually dapps interact with the blockchain through an API provider. You can enable the RPC port in one of nodes, or use another node that will it enabled.

For geth you have to add --rpc --rpcapi="db,eth,net,web3". Then your users can add a custom connection to MetaMask to your RPC provider and they will be able to interact with your dapp.

  • I have a connection with metamaske but how i deploy the dapp in the private network? If you have a guide os something!~
    – Panos Kor
    Jun 23, 2019 at 13:41
  • You use the exact same procedure than on mainnet but with your RPC provider. To deploy you can use Remix, Truffle or any other framework if they are connected to your nodes.
    – Ismael
    Jun 24, 2019 at 3:33
  • I found a guide with web3deploy for the contract but what about the front end?
    – Panos Kor
    Jun 24, 2019 at 12:07
  • If the frontend is a web application then the deployment is exactly the same than any other web application. Your customers will need to use MetaMask and configure with your RPC. Another option is to embed your RPC address in your app so you do not depend on Metamask but you have to provide some kind of account management (that is not trivial task).
    – Ismael
    Jun 24, 2019 at 17:33
  • i want to do it without truffle. Do you know any guide that can help me?
    – Panos Kor
    Jun 24, 2019 at 18:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.