You are here

Revision of Connecting a new peer to the GNUnet network from Tue, 05/04/2010 - 09:50

After installing the software you need to get connected to the GNUnet network. The configuration file included in your download is already configured to connect you to the GNUnet network. In this section the relevant configuration settings are explained.

To get an initial connection to the GNUnet network and to get to know peers already connected to the network you can use the so called bootstrap servers. This servers can give you a list of peers connected to the network. To use this bootstrap servers you have to configure the hostlist daemon to activate bootstrapping.

To activate bootstrapping you have to edit your configuration file and edit the [hostlist]-section.
To active bootstrapping you have to set the argument "-b" in the options line:

[hostlist]
OPTIONS = -b

Additionally you have to specify which server you want to use. The default bootstrapping server is "http://v9.gnunet.org:58080/". To set the server you have to edit the line "SERVERS" in the hostlist section. To use the default server you should set the line to

SERVERS = http://v9.gnunet.org:58080/

To use bootstrapping your configuration file should include this lines:

[hostlist]
OPTIONS = -b
SERVERS = http://v9.gnunet.org:58080/

Besides using bootstrap servers you can configure your GNUnet peer to recieve hostlist advertisements. Peers offering hostlists to other peers can send advertisement messages to peers that connect to them. If you configure your peer to recieve this messages, your peer use can download this lists and connect to the peers included. This lists a persistant, what means that they are save to your hard disk regularly and on loaded during startup.

To active hostlist learning you have to add the "-e" switch to the OPTIONS line in the hostlist section:

[hostlist]
OPTIONS = -b -e

Furthermore you can specify in which file the lists are saved. To save the lists in the file "hostlists.file" just set the line:

HOSTLISTFILE = hostlists.file

Best practice is to activate both bootstrapping and hostlist learning. So your configuration file should include this lines:

[hostlist]
OPTIONS = -b -e
SERVERS = http://v9.gnunet.org:58080/
HOSTLISTFILE = hostlists.file