<p>I'm using this docker-compose file: <a href="https://github.com/zeltsi/lnsim" rel="nofollow noreferrer">https://github.com/zeltsi/lnsim</a></p>
<p>It works fine with regest (without modification)</p>
<p>Then I changed regtest for testnet (all 4 occurences)</p>
<p>Now I have this error:</p>
<blockquote>
<p>lightning-cli: Connecting to 'lightning-rpc': Connection refused</p>
</blockquote>
<p>I have</p>
<pre><code>&gt; lightning-cli --version
v0.12.1
</code></pre>
<p>Both bitcoin nodes are synced.</p>
<p>So what is the difference between regtest and testnet ?</p>

CC BY-SA 4.0
2022-11-03T17:49:34.203Z
Sorry, I can't reproduce this. Runs fine when just replacing all 4 "regtest" with "testnet". Do you mind sharing your modified full docker-compose.yml?
stickies-v
CC BY-SA 4.0
2022-11-04T22:43:23.117Z
I used the docker-compose file in the link I've posted
jfjobidon
CC BY-SA 4.0
2022-11-04T22:44:32.660Z
https://github.com/zeltsi/lnsim/blob/master/docker-compose.yml
jfjobidon
CC BY-SA 4.0
2022-11-08T09:56:21.693Z
That's the original docker compose file. I'm looking for your modified version, since I can't reproduce the issue by following your steps.
stickies-v
<bitcoind><lightning-network>
docker-compose for LN works fine with regtest but error with testnet
jfjobidon
# docker-compose for LN works fine with regtest but error with testnet

(Asked by: username_0 on 2022-11-01)

I'm using this docker-compose file: https://github.com/zeltsi/lnsim
It works fine with regest (without modification)
Then I changed regtest for testnet (all 4 occurences)
Now I have this error:

lightning-cli: Connecting to 'lightning-rpc': Connection refused

I have
> lightning-cli --version
v0.12.1

Both bitcoin nodes are synced.
So what is the difference between regtest and testnet ?

**Tags:** bitcoind, lightning-network

> **Comments:**
> **username_1**: Sorry, I can't reproduce this. Runs fine when just replacing all 4 "regtest" with "testnet". Do you mind sharing your modified full docker-compose.yml?  
> **username_0**: I used the docker-compose file in the link I've posted  
> **username_0**: https://github.com/zeltsi/lnsim/blob/master/docker-compose.yml  
> **username_1**: That's the original docker compose file. I'm looking for your modified version, since I can't reproduce the issue by following your steps.  

---

## 0 answers

