<p>It seems like you answered your own question? You can use addnode=IP if you want to connect to a specific node as well as others, or connect=IP if you <em>only</em> want to connect to that one node and no others. Just add it to your configuration file.</p>

CC BY-SA 3.0
2017-10-01T07:08:27.230Z
But which IP I should use because now when I am doing it and after checking with 'getaddednodeinfo' there is no connection.
Ashot Khachatryan
CC BY-SA 3.0
2017-10-01T10:19:23.537Z
Make sure the correct port is open/forwarded if it's behind a firewall, perhaps try to ping one machine from the other to see if there is a connection
meshcollider
CC BY-SA 3.0
2017-09-30T23:30:59.870Z
2017-09-30T23:30:59.870Z
meshcollider
<p>I have two nodes running in different PC-s they have different IP-s. I want to connect one node to another with -addnode or -connect arguments. Can anyone help me please?</p>

<bitcoin-core><client><nodes>
How to connect two bitcoin nodes running globally
Ashot Khachatryan
# How to connect two bitcoin nodes running globally

(Asked by: username_0 on 2017-09-30)

I have two nodes running in different PC-s they have different IP-s. I want to connect one node to another with -addnode or -connect arguments. Can anyone help me please?

**Tags:** bitcoin-core, client, nodes


---

## 1 answers

### Answer by username_1 on 2017-09-30. Score: 1

It seems like you answered your own question? You can use addnode=IP if you want to connect to a specific node as well as others, or connect=IP if you *only* want to connect to that one node and no others. Just add it to your configuration file.

> **Comments:**
> **username_0**: But which IP I should use because now when I am doing it and after checking with 'getaddednodeinfo' there is no connection.  
> **username_1**: Make sure the correct port is open/forwarded if it's behind a firewall, perhaps try to ping one machine from the other to see if there is a connection  

---

