<p>this happens when you have a running daemon and suddenly for whatever reason the firewall starts blocking it. IT IS A FIREWALL ISSUE.</p>
<p>In my case I installed additional programs on my server which changed the settings of nftables (formerly iptables). I had to open up the relevant ports again (that are required by btc-daemon).</p>
<p>After that you have to restart both nftables as well as btcd.</p>
<p>Keep checking the logs for a few minutes. And you will see it will be running just fine.</p>

CC BY-SA 4.0
2021-01-13T00:11:35.927Z
2021-01-13T00:11:35.927Z
oceansailor
<p>Hello I run bitcoind and i get this 8333 failed after select(): Connection refused (111).
Can you help me with this? because it was working suddenly this happened.</p>

CC BY-SA 4.0
2019-12-19T08:51:48.593Z
my bitcoin.confıg is like this ( txindex=1
rpcuser=bitcoinrpc
rpcpassword=saadia
rpcbind=0.0.0.0
rpcallowip=0.0.0.0/0)
saadia
CC BY-SA 4.0
2019-12-19T09:12:04.607Z
if you use the framework rpc the default port is 8332
vincenzopalazzo
CC BY-SA 4.0
2019-12-19T09:17:21.337Z
when I run as testnet it works but when İ run as main it failed to connect. where can i change the port? Thank you
saadia
<bitcoin-core><bitcoind>
8333 failed after select(): Connection refused (111)
saadia
# 8333 failed after select(): Connection refused (111)

(Asked by: username_0 on 2019-12-19)

Hello I run bitcoind and i get this 8333 failed after select(): Connection refused (111).
Can you help me with this? because it was working suddenly this happened.

**Tags:** bitcoin-core, bitcoind

> **Comments:**
> **username_0**: my bitcoin.confıg is like this ( txindex=1 rpcuser=bitcoinrpc rpcpassword=username_0 rpcbind=0.0.0.0 rpcallowip=0.0.0.0/0)  
> **username_1**: if you use the framework rpc the default port is 8332  
> **username_0**: when I run as testnet it works but when İ run as main it failed to connect. where can i change the port? Thank you  

---

## 1 answers

### Answer by username_2 on 2021-01-13. Score: 1

this happens when you have a running daemon and suddenly for whatever reason the firewall starts blocking it. IT IS A FIREWALL ISSUE.

In my case I installed additional programs on my server which changed the settings of nftables (formerly iptables). I had to open up the relevant ports again (that are required by btc-daemon).

After that you have to restart both nftables as well as btcd.

Keep checking the logs for a few minutes. And you will see it will be running just fine.


---

