Bitcoin has only 8 active connections, and I read somewhere that it helps to forward ports. I know how to forward a port, but which port should I forward, and how should I tell Bitcoin-qt to use the forwarded port?
Asked
Active
Viewed 2,326 times
7
-
8 connections is more than enough for your client to pull blocks from the bitcoin network. So adding more doesn't help you, at least not directly. But it does help the bitcoin network if your node is accessible to others. – Stephen Gornick Feb 20 '13 at 22:07
1 Answers
8
Bitcoin has only 8 active connections
Correction: it has 8 outbound connections. By default, it can also accept up to 117 inbound connections
which port
Port 8333, TCP
how should I tell Bitcoin-qt to use the forwarded port?
Don't need to.
Nick ODell
- 29,184
- 11
- 69
- 129
-
OK, so does forwarding the port increase the number of outbound connections? – BenjiWiebe Feb 20 '13 at 20:01
-
No, but it makes it possible to get inbound connections, which helps the network. – Nick ODell Feb 20 '13 at 20:02
-
So why does Bitcoin-qt only have 8 outbound connections? Is there any way to increase this? – BenjiWiebe Feb 20 '13 at 20:05
-
1Yes, go into the [source code](https://github.com/bitcoin/bitcoin/blob/master/src/net.cpp#L28) and modify `MAX_OUTBOUND_CONNECTIONS`, then recompile. – Nick ODell Feb 20 '13 at 20:13
-
-
-
Obviously not; it is a `const`. @Nick ODell Thanks! I'll modify the source! (I built it from source anyhow.) – BenjiWiebe Feb 20 '13 at 20:15
-
1Incidentally, adding more than 8 outbound connections doesn't necessarily help you ... it can actually put additional work for your system and consume inbound connections elsewhere that others might have used instead. – Stephen Gornick Feb 20 '13 at 22:09
-
@StephenGornick I noticed that, when I edited the source code to allow more connections, it actually went slower. – BenjiWiebe Feb 21 '13 at 00:40