When I connect to geth with

geth console

it automatically connects to Main Network. I would like to connect TEST-NET. How I could connect to TEST-NET with geth?


1 Answer 1


You need to launch geth console by giving "testnet" or "rinkeby" as an argument -

--testnet    Ropsten network: pre-configured proof-of-work test network
--rinkeby    Rinkeby network: pre-configured proof-of-authority test network

There are other parameters/arguments available as well, which you may find worth taking a look at, please check this link for more details.

Also see here for the differences between the various test nets.

  • 1
    thanks, It worked. For interactive mode I used "geth --testnet console"
    – karfkars
    Jul 16, 2017 at 10:24
  • Which network is this on etherscan? Nov 12, 2017 at 4:49
  • @JustinThomas Ropsten, Rinkeby and Mainnet have their own etherscan
    – Ender
    Dec 10, 2019 at 5:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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