Ethereum: Connection Refused
Ethereum refused to connect with: Troubleshooting Guide
When trying to connect to the Ethereum network using a webshockets customer, such as the container running Ubuntu 16.04, you can find an error message indicating that the connection has been rejected by the Ethereum node. In this article, we examine the possible causes behind the error and take steps to solve it.
Why is the relationship reject?
There are many reasons why the relationship can be denied:
1.
- Incorrect WebSocket Handshake : The Ethereum node cannot be configured to listen to the input connections of the specified port (default 7687). Make sure the container works and listens to this door.
- Firewall or Network Problems : If you are behind a firewall, you can block the connection. Check the firewall configuration to allow the door.
4.
Step -Prob Solging
- Check the credentials :
* Check the “User” Pass, which is approved with the “-Huseer” option to make sure they contain valid Ethereum portfolio addresses.
2.
* Check that the container is running and listens to the door 7687. Docker PS -F Name = Bitecoin -etereum. Otherwise, start manually using“ Docker Run ... ”
- Firewall or network problems :
* Check the firewall configuration to allow port 7687.
- Update Ethereum node software :
* Run thesudo apt update” and install the latest Ethereum node software (eg Ethers.js
) using asudo apt instal ethers.js "
- Check the network connection
:
* Make sure you can connect to the Ethereum node from another terminal or command line.
Example of case use
Here's an example of how to use "Curl" in a storage by running Ubuntu 16.04 and Docker running web server:
Bash
Create a new user and wallet in Bitcoin Core (BTC)
Öko “Key = ‘Your Mailing Title’;” > Bitcoin.conf
Start the Bitcoin knot
SUDO Systemctl Start BTCD-No-Logfile
Create a new title from Ethereum portfolio using Ethers.js
Ethhers.js novo-millet-type = eth
Connect to Ethereum Network with Cull
Usern curl-seu name: black floor date ‘{JSONRPC “:” 1.0 “,” Method “:” EthgettransactionCount “,” Params “: [” 0x000000000000000000000000000001
`
Following these steps and solving problem legblays, you can solve the “refusal” error when you use “Curl” on the container running Ubuntu 16.04 and a web server running Docker using Ethereum.
Bir cevap yazın