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:\> \herong\bin\geth --datadir \herong\Ethereum\personal 
   console 2>> geth-personal.log

> eth.blockNumber

2. Turn on the RPC listener:

> admin.startRPC()
true

> 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

Table of Contents

 About This Book

 Introduction of Ethereum

 Ethereum Blockchain

 Ethereum Mist Wallet

 geth - Go Ethereum

 Deprecated: 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

 Install MetaMask Extension for Firefox

 Add Ethereum Test Network in MetaMask

 View Ethereum Account Address in MetaMask

 Add Ethereum Network Manually in MetaMask

Connect MetaMask to Local "geth" Node

 Using MetaMask Wallet

 Getting Free Ether on Test Networks

 Managing Ethereum Account

 Mining Ether with Your Computer

 Archived Tutorials

 References

 Full Version in PDF/EPUB