<p>You should have at least one node that can be accessed from a public IP address. This might mean setting up your router/firewall to forward your altcoin's port to the internal IP address of the machine.</p>

<p>You might hardcode this (public) IP into your altcoin code if it's static (it sounds like this is a very small, probably made by you, altcoin), and/or hardcode DNS server(s) that point to known node(s) (maybe use <a href="http://www.noip.com/" rel="nofollow">No-IP</a> if you're looking for a free/cheap approach with a dynamic IP). These are the same <a href="https://en.bitcoin.it/wiki/Satoshi_Client_Node_Discovery" rel="nofollow">techniques that Bitcoin Core uses</a> to discover your first peers.</p>

<p>Once a new client has connected to its first peer, the peer will tell you about more peers, etc.</p>

CC BY-SA 3.0
2014-05-24T19:39:57.133Z
Not really getting it. My computer connects fine on bitcoin and litecoin network. I checked mye external IP on getmyexternalip.com. Then I apply the command addnode xx.xx.xx.xx add -on my own client at the other machine (which is on my workplace). Should not that work?
Svein
CC BY-SA 3.0
2014-05-24T20:46:38.860Z
You probably have a firewall blocking the port. See http://www.wikihow.com/Set-Up-Port-Forwarding-on-a-Router
Tim S.
CC BY-SA 3.0
2014-05-22T18:40:11.083Z
2014-05-22T18:40:11.083Z
Tim S.
<p>I fixed it by adding the line
listen=1
in the .conf file at for one client
I also used the -connect=xx.xx.xx.xx command line argument where I used the global ip that I found on myexternalip.com</p>

CC BY-SA 3.0
2014-05-27T15:55:24.493Z
2014-05-27T15:55:24.493Z
Svein
<p>I am running two altcoin clients on different network, connected by VPN. The addnode  command works fine, and nodes connects. But what to do if I want others to connect to my network? The ip addresses i have are local subnet addresses. </p>

<altcoin><nodes><peers>
How to connect nodes globally?
Svein
# How to connect nodes globally?

(Asked by: username_0 on 2014-05-22)

I am running two altcoin clients on different network, connected by VPN. The addnode command works fine, and nodes connects. But what to do if I want others to connect to my network? The ip addresses i have are local subnet addresses.

**Tags:** altcoin, nodes, peers


---

## 2 answers

### Answer by username_1 on 2014-05-22. Score: 1

You should have at least one node that can be accessed from a public IP address. This might mean setting up your router/firewall to forward your altcoin's port to the internal IP address of the machine.

You might hardcode this (public) IP into your altcoin code if it's static (it sounds like this is a very small, probably made by you, altcoin), and/or hardcode DNS server(s) that point to known node(s) (maybe use [No-IP](http://www.noip.com/) if you're looking for a free/cheap approach with a dynamic IP). These are the same [techniques that Bitcoin Core uses](https://en.bitcoin.it/wiki/Satoshi_Client_Node_Discovery) to discover your first peers.

Once a new client has connected to its first peer, the peer will tell you about more peers, etc.

> **Comments:**
> **username_0**: Not really getting it. My computer connects fine on bitcoin and litecoin network. I checked mye external IP on getmyexternalip.com. Then I apply the command addnode xx.xx.xx.xx add -on my own client at the other machine (which is on my workplace). Should not that work?  
> **username_1**: You probably have a firewall blocking the port. See http://www.wikihow.com/Set-Up-Port-Forwarding-on-a-Router  

---

### Answer by username_0 on 2014-05-27. Score: 0

I fixed it by adding the line
listen=1
in the .conf file at for one client
I also used the -connect=xx.xx.xx.xx command line argument where I used the global ip that I found on myexternalip.com


---

