<p>Quoting from the <a href="https://en.bitcoin.it/wiki/Satoshi_Client_Node_Discovery#IRC_Addresses" rel="noreferrer">wiki</a>:</p>
<blockquote>
<p>In addition to learning and sharing its own address, the node learned about other node addresses via an IRC channel. See <a href="https://github.com/bitcoin/bitcoin/blob/847593228de8634bf6ef5933a474c7e63be59146/src/irc.cpp" rel="noreferrer">irc.cpp</a>.</p>
<p>After learning its own address, a node encoded its own address into a string to be used as a nickname. Then, it randomly joined an IRC channel named between #bitcoin00 and #bitcoin99. Then it issued a WHO command. The thread read the lines as they appeared in the channel and decoded the IP addresses of other nodes in the channel. It did this in a loop, forever, until the node was shutdown.</p>
<p>When the client discovered an address from IRC, it set the timestamp on the address to the current time, but it used a &quot;penalty&quot; of 51 minutes, which means it looked like it was actually seen almost an hour earlier.</p>
</blockquote>

CC BY-SA 4.0
2023-09-03T20:34:00.857Z
2023-09-03T20:34:00.857Z
Antoine Poinsot
<ul>
<li>The first seed mechanism was IRC-based. There was a hardcoded IRC server and IRC channel (<code>#bitcoin</code> on Freenode), and the Bitcoin client would connect to the server, and join the channel with a nickname that encodes the client's IP address. Through that, it would receive &quot;JOIN&quot; messages from other Bitcoin clients joining the channel, which would get inserted into its IP address database.</li>
<li>In version 0.2.12 (June 2010), hardcoded seed IPs were added, as a fallback for when IRC seeding failed.</li>
<li>In version 0.3.0 (June 2010), the IRC server was changed from Freenode to LFnet.</li>
<li>In version 0.3.21 (April 2011), the DNS seeding mechanism was introduced (but off by default).</li>
<li>In version 0.3.22 (June 2011), the IRC seeding mechanism was extended to 100 channels instead of one, due to it growing too big. Every client would randomly join one of the channels.</li>
<li>In version 0.3.24 (July 2011), DNS seeding was enabled by default.</li>
<li>In version 0.6.0 (March 2012), the IRC seeding mechanism was turned off by default.</li>
<li>In version 0.9.0 (March 2014), support for the IRC seeding mechanism was completely removed from the codebase.</li>
</ul>

CC BY-SA 4.0
2023-09-03T20:35:58.383Z
2023-09-03T20:51:39.430Z
2023-09-03T20:51:39.430Z
Pieter Wuille
<p>Nowadays there are DNS seeds and hardcoded IP addresses, but back in the day when Satoshi released Bitcoin v0.1, how did new nodes connect to the rest of the network? My initial thought was that the first release would have Satoshi's IP address hardcoded, but I couldn't find anything of the sort in the source code.</p>

<history><satoshi-nakamoto><peer-discovery><dns><irc>
How did peer discovery work in Bitcoin v0.1?
Vojtěch Strnad
# How did peer discovery work in Bitcoin v0.1?

(Asked by: username_0 on 2023-09-03)

Nowadays there are DNS seeds and hardcoded IP addresses, but back in the day when Satoshi released Bitcoin v0.1, how did new nodes connect to the rest of the network? My initial thought was that the first release would have Satoshi's IP address hardcoded, but I couldn't find anything of the sort in the source code.

**Tags:** history, satoshi-nakamoto, peer-discovery, dns, irc


---

## 2 answers

### Answer by username_2 on 2023-09-03. Score: 16 | Accepted answer

* The first seed mechanism was IRC-based. There was a hardcoded IRC server and IRC channel (`#bitcoin` on Freenode), and the Bitcoin client would connect to the server, and join the channel with a nickname that encodes the client's IP address. Through that, it would receive "JOIN" messages from other Bitcoin clients joining the channel, which would get inserted into its IP address database.
* In version 0.2.12 (June 2010), hardcoded seed IPs were added, as a fallback for when IRC seeding failed.
* In version 0.3.0 (June 2010), the IRC server was changed from Freenode to LFnet.
* In version 0.3.21 (April 2011), the DNS seeding mechanism was introduced (but off by default).
* In version 0.3.22 (June 2011), the IRC seeding mechanism was extended to 100 channels instead of one, due to it growing too big. Every client would randomly join one of the channels.
* In version 0.3.24 (July 2011), DNS seeding was enabled by default.
* In version 0.6.0 (March 2012), the IRC seeding mechanism was turned off by default.
* In version 0.9.0 (March 2014), support for the IRC seeding mechanism was completely removed from the codebase.


---

### Answer by username_1 on 2023-09-03. Score: 5

Quoting from the [wiki](https://en.bitcoin.it/wiki/Satoshi_Client_Node_Discovery#IRC_Addresses):

> In addition to learning and sharing its own address, the node learned about other node addresses via an IRC channel. See [irc.cpp](https://github.com/bitcoin/bitcoin/blob/847593228de8634bf6ef5933a474c7e63be59146/src/irc.cpp).
>
> After learning its own address, a node encoded its own address into a string to be used as a nickname. Then, it randomly joined an IRC channel named between #bitcoin00 and #bitcoin99. Then it issued a WHO command. The thread read the lines as they appeared in the channel and decoded the IP addresses of other nodes in the channel. It did this in a loop, forever, until the node was shutdown.
>
> When the client discovered an address from IRC, it set the timestamp on the address to the current time, but it used a "penalty" of 51 minutes, which means it looked like it was actually seen almost an hour earlier.


---

