0

This question already has an answer here:

I read the bitcoin references but I can't find a description regarding how bitcoin clients find other host in the p2p network. Would you please tell me?

marked as duplicate by Nate Eldredge, dchapes, Mathias711, Stéphane Gimenez, Murch Jul 6 '14 at 15:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3

There are several methods for a bitcoin client to find other nodes.

First of all they save a list of nodes from previous connections.
Of course this only works when they don't connect the first time.

If a client has no IPs stored it falls back to DNS-Seeds:

Bitcoin looks up the IP Addresses of several host names and adds those to the list of potential addresses. This is the default seeding mechanism, as of v0.6.x and later.

Once a client is connected to the network, it will ask for a list via the Addr-Message containing a list of IPs of known clients.

As you can see in the Bitcoin-Wiki there was another method, which is no longer used:

IRC

Bitcoin joins a random channel between #bitcoin00 and #bitcoin99 on irc.lfnet.org. Your nick is set to an encoded form of your IP address. By decoding all the nicks of all users on the channel, you get a list of all IP addresses currently connected to Bitcoin.

  • You forgot the list of inbuilt client seeds. – Bardi Harborow Jul 2 '14 at 9:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.