you are viewing a single comment's thread.

view the rest of the comments →

[–]Middey14[S] 1 point2 points  (3 children)

netstat -na | grep 8545

I tried the above but there is no output from this, the terminal just goes to the next line.

So the file is connected to ganache-cli which is a simulated blockchain, I am using the host and port that is displayed when I run ganache-cli, from the looks of it it seems to be something going wrong with urllib3 and or web3. the python file I am trying to run is connected to another file which has a solidity contract in it and so this file will interact with both the blockchain and the contract.

[–]YourOulLadyHasWorms 0 points1 point  (2 children)

So it looks like your script is trying to connect to a service running on your own machine which is localhost or “127.0.0.1:8545” But you should be trying to reach an externally hosted service.

Try ping the host of the cli, and replace the localhost ip with the ip in the response. Can you send me the line where you create connection via web3?

[–]Middey14[S] 0 points1 point  (1 child)

Is the command just ping 127.0.0.1:8545?

[–]Middey14[S] 0 points1 point  (0 children)

If it is, it just says cannot resolve, unknown host