0 votes
1 view
in Blockchain by (11.8k points)

geth --datadir  ./accnt1   --port 30306 --networkid 2018 --rpc --rpcport 8545 --rpccorsdomain=”*” --nodiscover --rpcapi “db,personal,eth,net,web3,debug”  --rpcaddr="127.0.0.1" --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 (27.7k 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 http://remix.ethereum.org/and the ide should be connected via http not via https . Use the link provided in this line to get connected to the ide.
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...