user31712: I want to launch Bitcoin core connecting to a specific list of peers. I can do this using connect:
bitcoind -connect=<IP1> -connect=<IP2>
Is there a way I can put the peers I want to connect to into a file and give this file to bitcoind as input?

user83534: Within the data directory for your coin (/dir/for/yourcoin/.yourcoin) you will have a configuration file. Within this configuration file, you will want to place the line connect=IP ADDRESS:PORT
This will make your client automatically attempt to establish a connection with the node(s) you specify.
Example: within myaltcoin.conf place the line connect=192.168.49.50:9332
Obviously just substitute your desired IP address and port.

31712: <p>I want to launch Bitcoin core connecting to a specific list of peers. I can do this using <code>connect</code>:</p>

<p><code>bitcoind -connect=&lt;IP1&gt; -connect=&lt;IP2&gt;</code></p>

<p>Is there a way I can put the peers I want to connect to into a file and give this file to <code>bitcoind</code> as input?</p>
 83534: <p>Within the data directory for your coin (/dir/for/yourcoin/.yourcoin) you will have a configuration file. Within this configuration file, you will want to place the line connect=IP ADDRESS:PORT</p>

<p>This will make your client automatically attempt to establish a connection with the node(s) you specify.</p>

<p>Example: within myaltcoin.conf place the line connect=192.168.49.50:9332
Obviously just substitute your desired IP address and port.</p>
