Ethereum: Port forwarding plus Bitcoin

Ethereum: Port Forwarding + Bitcoin – A Step-by-Step Guide

Ethereum: Port forwarding plus Bitcoin

As a cryptocurrency enthusiast, you are probably aware of the importance of maintaining a secure network. One effective way to achieve this is by using port forwarding, especially when mining Bitcoin. This article will teach you how to use port forwarding with Ethereum and Bitcoin and provide step-by-step instructions on how to set up your setup.

Why Port Forwarding?

Before diving into the setup, let’s briefly understand why port forwarding is necessary in this context. With only 8 active Bitcoin connections, network congestion issues often occur, leading to longer latencies and reduced mining speeds. By using a port forwarder like Tor or a dedicated VPN, you can prevent unauthorized access to your network and ensure that Bitcoin mining takes place without interference.

Which port should you forward?

The choice of port depends on the specific application and services running on your system. For Bitcoin, it is generally recommended to use port 8333 for the Bitcoin daemon (bitcoin-qt). This is because most Bitcoin clients need this port to communicate with the blockchain.

For Ethereum, you need to forward ports 8545 and 8550. Here’s why:

  • Port 8545: This is the default port used by Ethereum clients (e.g. Geth, Homestead) to connect to the network.
  • Port 8550: This is used for Ethereum smart contracts and the Ethereum Virtual Machine (EVM).

To forward these ports, you need to use a service like
ufw (Uncomplicated Firewall) or
ipfw on your Linux system. Here is an example configuration:


ufw allow 8545/tcp

Allow Bitcoin daemon port 8545


ufw allow 8550/tcp

Allow Ethereum smart contract and EVM ports


ipfw adds rule 100 to 200 2222/22222 in TCP protocol from any port to any port 8545 8550

Redirect bitcoin-qt and smart contracts to their respective ports

configure ufw

If you are using a Debian based system, you can use the following command to enable ufw:

sudo ufw enable

Similarly, on an Ubuntu based system, you can use the following command:

sudo ufw allow 8545/tcp

sudo ufw allow 8550/tcp

Configure ipfw

On a Linux system with IPFW installed, you can configure it as follows:


add ipfw rule 100 to 200 2222/22222 in TCP protocol from any port to any port 8545 8550

forward Bitcoin-qt and smart contracts to their respective ports

Test your configuration

After configuring your ufw and ipfw rules, test your configuration by connecting to the Ethereum network using a client such as
gethor mainnet-geth. You should be able to establish a secure connection without encountering any issues.

In summary, port forwarding with Bitcoin is an effective way to avoid congestion issues in your system. By following these step-by-step instructions and configuring ufw and ipfw on your Linux system, you can enjoy a seamless Ethereum experience while maintaining the security of your network.