Bitcoin core: connect to specific peers from file I want to launch Bitcoin core connecting to a specific list of peers. I can do this using connect:

bitcoind -connect=&lt;IP1&gt; -connect=&lt;IP2&gt;

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?
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.