(Feature request) Does trilium support IPv6? #7367
-
Describe featureI used the docker image zadam/trilium:0.57-latest to deploy a trilium in my server, and I can access trilium in chrome with IPv4 address, but seems I cannot access by IPv6 address, and I find no information about is IPv6 supported? Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I found maybe it is IPv6 NAT problem, I will check it first. |
Beta Was this translation helpful? Give feedback.
-
After check, it should be the trilium support problem. In the code, the host is set by the following code: when use 0.0.0.0, it only support IPv4, and no IPv6 support. |
Beta Was this translation helpful? Give feedback.
-
Hi, can't you then set the |
Beta Was this translation helpful? Give feedback.
-
You should set To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
You should set
TRILIUM_HOST
to::
(not::/0
) to enable IPv6 binding.::/0
is a CIDR block and not a valid listen address for Node.js servers, so it won't work. The Trilium server passes the host value directly to Node.js'slisten
function, which supports both IPv4 and IPv6 addresses as per standard Node.js conventions. If you use::
, Trilium should listen on all IPv6 interfaces (and possibly IPv4 as well, depending on your OS and Node.js configuration) reference. If you still can't access Trilium over IPv6, check your Docker and host network settings.To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
