<p>The solution is to leave the IP empty, like this:</p>
<p><code>bind-addr=:9735</code></p>
<p>will bind on both IPv4 and IPv6.</p>
<blockquote>
<p>An empty ‘IPADDRESS’ is a special value meaning bind to IPv4 and/or
IPv6 on all interfaces, ‘0.0.0.0’ means bind to all IPv4 interfaces,
‘::’ means ‘bind to all IPv6 interfaces’.</p>
</blockquote>

CC BY-SA 4.0
2022-06-12T10:25:06.953Z
2022-06-12T10:25:06.953Z
Maestro
<p>Helping to run v0.10.1 node for a client, who wants to enable IPV6.
Now listconfigs say:</p>
<p><code>&quot;bind-addr&quot;: &quot;0.0.0.0:9735&quot;</code></p>
<p><code>&quot;autolisten&quot;: true</code></p>
<p>Reading this: <a href="https://lightning.readthedocs.io/lightningd-config.5.html?highlight=bind-dir" rel="nofollow noreferrer">https://lightning.readthedocs.io/lightningd-config.5.html?highlight=bind-dir</a></p>
<p>It's unclear to me. Is the way to enable IPV6 to put another bind-addr for it and have:</p>
<p><code>&quot;bind-addr&quot;: &quot;0.0.0.0:9735&quot;</code></p>
<p><code>&quot;bind-addr&quot;: &quot;[MYIPV6ADDRESS]:9735&quot;</code></p>
<p>Or can there only be one bind-addr?
The installation is docker on VPS.
So, the host has many other inet6 addresses from all that, and seems that should not set</p>
<p><code>&quot;bind-addr&quot;: &quot;::9735&quot;</code></p>

CC BY-SA 4.0
2021-10-20T07:26:44.033Z
Why do you need to bind two addresses? This type of address is used only internally
vincenzopalazzo
<core-lightning>
How to enable IPV6 on c-lightning in docker properly?
SMS
# How to enable IPV6 on c-lightning in docker properly?

(Asked by: username_0 on 2021-10-16)

Helping to run v0.10.1 node for a client, who wants to enable IPV6.
Now listconfigs say:

`"bind-addr": "0.0.0.0:9735"`

`"autolisten": true`

Reading this: <https://lightning.readthedocs.io/lightningd-config.5.html?highlight=bind-dir>

It's unclear to me. Is the way to enable IPV6 to put another bind-addr for it and have:

`"bind-addr": "0.0.0.0:9735"`

`"bind-addr": "[MYIPV6ADDRESS]:9735"`

Or can there only be one bind-addr?
The installation is docker on VPS.
So, the host has many other inet6 addresses from all that, and seems that should not set

`"bind-addr": "::9735"`

**Tags:** core-lightning

> **Comments:**
> **username_1**: Why do you need to bind two addresses? This type of address is used only internally  

---

## 1 answers

### Answer by username_2 on 2022-06-12. Score: 1

The solution is to leave the IP empty, like this:

`bind-addr=:9735`

will bind on both IPv4 and IPv6.

> An empty ‘IPADDRESS’ is a special value meaning bind to IPv4 and/or
> IPv6 on all interfaces, ‘0.0.0.0’ means bind to all IPv4 interfaces,
> ‘::’ means ‘bind to all IPv6 interfaces’.


---

