<blockquote>
  <p>Does anyone know where to find a reliable source for finding out a total amount of active bitcoin nodes?</p>
</blockquote>

<p><a href="http://getaddr.bitnodes.io/" rel="nofollow">http://getaddr.bitnodes.io/</a> tracks listening peers on IPv4 and IPv6 only. The number is subject to gaming if people desire, there's no assurance that any of the nodes there are actually useful to connect to. At least some of the nodes listed will be duplicate due to them having both an IPv4 and IPv6 socket open at the same time and thus appearing as "two" nodes.</p>

<blockquote>
  <p>How many peers does each active node have in average? </p>
</blockquote>

<p>Bitcoin nodes will only attempt outgoing connections which are in ranges of IP addresses that are not close together, specifically for IPv4 it <a href="https://github.com/bitcoin/bitcoin/blob/master/src/net.cpp#L1280-L1292" rel="nofollow">won't connect to any two nodes that are in the same /16 block</a>. This means that any node running on a popular area such as a VPS host or EC2 node will likely see substantially less incoming activity than one running in a less densely populated area. This is an attempt to raise the cost of a large scale sybil attack against the network by increasing the diversity of IP addresses needed to gain an extremely large number of connections.</p>

<p>As a result you have to be very careful how you gain statistics about the number of incoming connections, because not all listening sockets are equal in the eyes of a client attempting to find peers. As far as I am aware nobody does this sort of data collection on a wide scale and publishes the results, but it is probably in the high tens of connections inbound on most nodes judging by my own experience. </p>

<blockquote>
  <p>Is there a limit to how many peers one node can have?</p>
</blockquote>

<p>The default is 125 maximum, 8 outgoing and 117 incoming. </p>

<p>Absent this the number is bounded by the constraints of the system it is running on. </p>

CC BY-SA 3.0
2015-07-02T16:02:38.040Z
2015-07-02T16:11:58.787Z
2015-07-02T16:11:58.787Z
Claris
<p>I have 2 questions:</p>

<ul>
<li><p>Does anyone know where to find a reliable source for finding out a total amount of active bitcoin nodes?</p></li>
<li><p>How many peers does each active node have in avarage? Is there a limit to how many peers one node can have?</p></li>
</ul>

<network><nodes><peers>
Total amount of nodes and avarage active peer number
Aliakbar Ahmadi
# Total amount of nodes and avarage active peer number

(Asked by: username_0 on 2015-07-02)

I have 2 questions:

* Does anyone know where to find a reliable source for finding out a total amount of active bitcoin nodes?
* How many peers does each active node have in avarage? Is there a limit to how many peers one node can have?

**Tags:** network, nodes, peers


---

## 1 answers

### Answer by username_1 on 2015-07-02. Score: 3

> Does anyone know where to find a reliable source for finding out a total amount of active bitcoin nodes?

<http://getaddr.bitnodes.io/> tracks listening peers on IPv4 and IPv6 only. The number is subject to gaming if people desire, there's no assurance that any of the nodes there are actually useful to connect to. At least some of the nodes listed will be duplicate due to them having both an IPv4 and IPv6 socket open at the same time and thus appearing as "two" nodes.

> How many peers does each active node have in average?

Bitcoin nodes will only attempt outgoing connections which are in ranges of IP addresses that are not close together, specifically for IPv4 it [won't connect to any two nodes that are in the same /16 block](https://github.com/bitcoin/bitcoin/blob/master/src/net.cpp#L1280-L1292). This means that any node running on a popular area such as a VPS host or EC2 node will likely see substantially less incoming activity than one running in a less densely populated area. This is an attempt to raise the cost of a large scale sybil attack against the network by increasing the diversity of IP addresses needed to gain an extremely large number of connections.

As a result you have to be very careful how you gain statistics about the number of incoming connections, because not all listening sockets are equal in the eyes of a client attempting to find peers. As far as I am aware nobody does this sort of data collection on a wide scale and publishes the results, but it is probably in the high tens of connections inbound on most nodes judging by my own experience.

> Is there a limit to how many peers one node can have?

The default is 125 maximum, 8 outgoing and 117 incoming.

Absent this the number is bounded by the constraints of the system it is running on.


---

