You are not logged in.

#1 2021-12-15 05:06:25

kashishme
Member
Registered: 2021-01-08
Posts: 175

[SOLVED]how to open port 8545 for eth mining using geth

I wasn't sure of what topic does this question come under so i posted it here because i am mining crypto on my laptop.

I have gotten into mining and i successfully synced the blockchain on geth and downloaded ethminer.

When i follow the instructions provided in the official documentation (https://geth.ethereum.org/docs/interface/mining), and try mining through port 8545, it shows connection refused.

In short, what kind of port do i use? and what do i do? i tried googling this thing but can't find a clear answer.

p.s. if its not clear i am new with this

I am doing this on my dell g3 3590 laptop

Note: i have posted this on reddit too, so i am linking it here so this is updated
https://www.reddit.com/r/archlinux/comm … or_mining/

edit: alright i browsed again and it turns out port 8545 is closed, how do i open it i tried using this command:

sudo iptables -A INPUT -p tcp --dport 8545 -j ACCEPT

Is there any other way to open it?

Last edited by kashishme (2021-12-18 04:30:21)

Offline

#2 2021-12-17 08:47:40

Venem
Guest

Re: [SOLVED]how to open port 8545 for eth mining using geth

Well the first question is whether you installed any other firewalls like ufw or whether you have any custom rules in iptables

While the miner is running, run

sudo iptables -S

then

ss -tulpn

and please post the output here

This should give us an insight into what ports are closed/open and what the miner is trying to connect on

Edit: I have tried to run geth in the past and for me it worked fine without any configuration, no ports needing to be allowed/forwarded although I was not running any firewalls at the time

Last edited by Venem (2021-12-17 12:16:17)

#3 2021-12-18 04:30:02

kashishme
Member
Registered: 2021-01-08
Posts: 175

Re: [SOLVED]how to open port 8545 for eth mining using geth

Venem wrote:

Well the first question is whether you installed any other firewalls like ufw or whether you have any custom rules in iptables

While the miner is running, run

sudo iptables -S

then

ss -tulpn

and please post the output here

This should give us an insight into what ports are closed/open and what the miner is trying to connect on

Edit: I have tried to run geth in the past and for me it worked fine without any configuration, no ports needing to be allowed/forwarded although I was not running any firewalls at the time

I was about to update here, wanted to say that yesterday i reinstalled geth and downloaded everything again and out of the blue everything was working fine, Thank you for your help though.

Offline

#4 2021-12-18 11:13:33

Venem
Guest

Re: [SOLVED]how to open port 8545 for eth mining using geth

Ok no problem always glad (to try) to help lol

Board footer

Powered by FluxBB