<p>I am very interested in the p2p protocol used by Bitcoin clients. There are some excellent answers here that describe the way clients connect to the network.</p>

<ul>
<li><a href="https://stackoverflow.com/questions/41673073/how-does-the-bitcoin-client-determine-the-first-ip-address-to-connect">How does the bitcoin client determine the first IP address to connect?</a></li>
<li><a href="https://stackoverflow.com/questions/310607/peer-to-peer-methods-of-finding-peers">Peer to Peer: Methods of Finding Peers</a></li>
</ul>

<p>I want to replicate the peer-to-peer network only without participating in the crypto-currency part. This is for an experiment on peer to peer discovery.</p>

<p>So, can you please show me some code instructions to set-up such a network?</p>

<network><peer-discovery><broadcast>
Working with the Bitcoin network protocol
cogitoergosum
# Working with the Bitcoin network protocol

(Asked by: username_0 on 2017-06-09)

I am very interested in the p2p protocol used by Bitcoin clients. There are some excellent answers here that describe the way clients connect to the network.

* [How does the bitcoin client determine the first IP address to connect?](https://stackoverflow.com/questions/41673073/how-does-the-bitcoin-client-determine-the-first-ip-address-to-connect)
* [Peer to Peer: Methods of Finding Peers](https://stackoverflow.com/questions/310607/peer-to-peer-methods-of-finding-peers)

I want to replicate the peer-to-peer network only without participating in the crypto-currency part. This is for an experiment on peer to peer discovery.

So, can you please show me some code instructions to set-up such a network?

**Tags:** network, peer-discovery, broadcast


---

## 0 answers

