Connect MetaMask to Local "geth" Node

This section describes how to connect MetaMask to the 'geth' on the local host.

The MetaMask wallet can also be connected to the local Ethereum private network.

Here is what I did to connect MetaMask extension on Chrome to my Ethereum private network running by the "geth" node.

1. Run the "geth" node on my private network:

C:\>\local\bin\geth --datadir \herong\Ethereum\personal 
   console 2>> geth-personal.log

> eth.blockNumber

2. Turn on the RPC listner:

> admin.startRPC()

> admin.startRPC()
Error: HTTP RPC already running on localhost:8545

3. Start MetaMask on Chrome and select "Localhost 8545" from the network selection dropdown.

4. Wait few seconds, MetaMask will be connected to the "geth" node through http://localhost:8545.

Connect MetaMask to Local Private Network
Connect MetaMask to Local Private Network

Last update: 2018.

Table of Contents

 About This Book

 Introduction of Ethereum

 Ethereum Blockchain

 Ethereum Mist Wallet

 geth - Go Ethereum

 Testnet - Ropsten network

 Private Ethereum Network

 64-Bit "geth" for Private Ethereum Network

 Private Network with Custom Genesis Block

 Transferring Funds between Ether Accounts

MetaMask - Browser Based Ethereum Wallet

 What Is MetaMask

 Install MetaMask Extension for Chrome

 Setup MetaMask Extension for Chrome

 One Account for All Ethereum Networks

 Get Free Ether from

 Get Free Ether from

Connect MetaMask to Local "geth" Node

 Transfer Ether Fund to MetaMask Account

 Send Ether from MetaMask to Private Network Failed

 Private Network ID Must Match "chainId"

 Send Ether from MetaMask to Private Network

 Process MetaMask Transsfer Transaction

 Download and Read MetaMask State Logs

 View Account QR Code in MetaMask

 Export Private Key and Retire MetaMask

 Import Private Key to "geth" Account

 Managing Ethereum Account - Mining Ether with Browser


 PDF Printing Version