Explore Courses Blog Tutorials Interview Questions
0 votes
in Blockchain by (12.7k points)

geth --datadir  ./accnt1   --port 30306 --networkid 2018 --rpc --rpcport 8545 --rpccorsdomain=”*” --nodiscover --rpcapi “db,personal,eth,net,web3,debug”  --rpcaddr="" --rpcport 8545 console

using the above command to start the console, to connect remix to a private blockchain. Even Tried localhost for rpcaddr. Also used HTTP version of remix. Still getting below error .

Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC).

1 Answer

0 votes
by (29.5k points)

Hi, I'd recommend you to have a look over the following:

  • Make sure you have changed the environment in remix to Web3 provider
  • while starting geth if you want to connect it to remix then you need to allow remote connections to ethereum node . That can be done by adding --rpccorsdomain "URL OF THE WEBSITE "
  • rpc allows HTTP over it and not HTTPS so in the url change https to the ide should be connected via http not via https . Use the link provided in this line to get connected to the ide.

Browse Categories