Connecting Ethereum was refused: Solving problems with the wizard
When you try to connect to the Ethereum network using Websockets, such as “Curl” in Ubuntu 16.04 container, you can write an error message suggesting that the connection has been rejected by the Ethereum junction. In this article, we will review the possible causes of this error and provide steps to solve it.
Why is the connection rejected?
There are several reasons why the connection can be rejected:
- Incorrect or incomplete certificates : Make sure that the variable “user” and “passage” transmitted in the “-Free” option contain the correct addresses of the Ethereum portfolio.
- Incorrect Handsocketheet Websocket : The Ethereum node cannot be configured to listen to incoming connections on a specific port (by default 7687). Check if the container works and listens to this port.
- Check the configuration of the dam to make sure the port is allowed.
4.
steps to solve problems
- Check the certificates :
* Carefully check the variable “user” and “pass” transmitted in the option “to make sure they contain the correct addresses of the Ethereum portfolio.
- Check Handsocket Websocket :
* Check that the container starts and listens to the port of 7687, launching the ‘docker ps -f name = Bitecoin -thereum’. If not, run it manually with the help of ‘docker Run … `
- Problems with firewall or network
:
* Check the configuration of the dam to make sure that the port 7687 is allowed.
- Ethereum node software update :
* Start "Sudo APPT Update" and install the latest software for the Ethereum course (eg Ethers.js) using “sudo apt instal instal ether”
- Verification of the network connection :
* Make sure you can connect to the Ethereum node from another terminal or command line.
Example of using the box
Here is an example of how you can use “Curl” in a container from Ubuntu 16.04 and a web server launched docker:
`Bash
Create a new user and portfolio on the Bitcoin (BTC) core
Echo "Key =" Your-Lallet-Adress ";" > Bitcoin.conf
Start Bitcoin node
Sudo Systemctl Start BTCD-BOGFILE
Create a new Ethereum portfolio address using éters.js
eéters.js new-wallet-type = eth
Connect to the Ethereum network using Curl
Curl-user your-user: your-password-data-binary '{"jsonrpc": "1.0", "method": "et_getransactioncotcoutcount", "Params": ["0x0000000000000000000000000000001"
According to these steps and solving potential problems with solving problems, you should be able to solve the “connection” error when using “Curl” in the Ubuntu container 16.04 and a www server launched Docker from Ethereum.