<p>If you want one of your two nodes to only connect to the other one in the local network, use the <code>connect</code> command. If you want to be connected to the global network and the local node use the <code>addnode</code> command.</p>
<p>During the synchronization you may want to use <code>connect</code> to ensure that it only requests the blockchain from the other local node to save bandwidth.</p>

CC BY-SA 4.0
2024-10-21T14:44:31.083Z
2024-10-21T14:44:31.083Z
Murch
<p>I have two computers and both have whole blockchain. However I run one computer first, than second, and Bitcoin Core on both. Both are syncing but from Internet.</p>
<p>What configuration options should I use to make one computer stay connected to second Bitcoin Core, that one would sync blockchain from the other through local network?</p>

<bitcoin-core><network><peers><bitcoin.conf>
Bitcoin Core and two computers in local+Internet network
pbies
# Bitcoin Core and two computers in local+Internet network

(Asked by: username_0 on 2024-10-18)

I have two computers and both have whole blockchain. However I run one computer first, than second, and Bitcoin Core on both. Both are syncing but from Internet.

What configuration options should I use to make one computer stay connected to second Bitcoin Core, that one would sync blockchain from the other through local network?

**Tags:** bitcoin-core, network, peers, bitcoin.conf


---

## 1 answers

### Answer by username_1 on 2024-10-21. Score: 2 | Accepted answer

If you want one of your two nodes to only connect to the other one in the local network, use the `connect` command. If you want to be connected to the global network and the local node use the `addnode` command.

During the synchronization you may want to use `connect` to ensure that it only requests the blockchain from the other local node to save bandwidth.


---

