5

Previously, according to tutorials, remix IDE had cube icon to connect to geth on localhost. Now the icon is gone and its not clear if the function is still there. Is it possible? How? I take remix here: https://github.com/ethereum/browser-solidity/blob/gh-pages/remix-7daae65.zip

enter image description here

Stepan Yakovenko
  • 607
  • 1
  • 9
  • 21

2 Answers2

3

This functionality has now been moved to Run -> Environment -> Web3 Provider:

enter image description here

In the popup I had to enter http://127.0.0.1:8545, it did not work with the default http://localhost:8545. I am connecting to a local geth node on macOS. Make sure to enable RPC and give access to remix via:

geth --rpc --rpccorsdomain "https://remix.ethereum.org" console
SCBuergel
  • 8,774
  • 7
  • 38
  • 69
  • Yes, and I get known JSON "" error. – Stepan Yakovenko Jul 11 '17 at 11:18
  • 1
    What OS are you on and which version of geth are you using? Then pls double-check that you 1) started geth with the correct parameters as I indicated, 2) entered the right address of your node in the popup of remix (try also the default http://localhost:8545). – SCBuergel Jul 11 '17 at 11:30
  • Here is screenshot of my problem: https://github.com/ethereum/browser-solidity/issues/620, can't post another answer here, not enough carma :( – Stepan Yakovenko Jul 11 '17 at 23:16
  • did you try with --rpccorsdomain "https://remix.ethereum.org" instead of --rpccorsdomain "*" as in the screenshot? If that persists it might be a windows specific issue. Check if you can connect from e.g. nodeJS and file an issue for geth if it persists. – SCBuergel Jul 11 '17 at 23:20
  • The same story with --rpccorsdomain "https://remix.ethereum.org" – Stepan Yakovenko Jul 11 '17 at 23:37
  • HI! The issue resolved, see details in the github issue. – Stepan Yakovenko Jul 12 '17 at 15:32
  • but I explicitely wrote https in the corsdomain - does that work then? – SCBuergel Jul 12 '17 at 17:07
  • 1
    the reason was missing --rpc flag – Stepan Yakovenko Jul 12 '17 at 18:20
  • 1
    Yeah but that's written in my answer, just had to copy-paste that ;-) happy that it's working for you! – SCBuergel Jul 13 '17 at 06:53
  • Make sure you are not loading remix.ethereum.org from non-https (yes, they have non-https as well). Otherwise adjust your --rpccorsdomain accordingly. – thalisk Jul 17 '18 at 10:49
0

Just trying to improve Sebastian's answer -- the location of this setting has changed to:

  • RunEnvironmentWeb3 Provider
    (at top right)

Web3 Provider

rustyx
  • 910
  • 7
  • 15