Skip to content

Enable IPv6 support for web UI #2711

@tlstpierre

Description

@tlstpierre

Is this a feature relevant to companion itself, and not a module?

  • I believe this to be a feature for companion, not a module

Is there an existing issue for this?

  • I have searched the existing issues

Describe the feature

Companion should either by default, or with a simple option, bind listening sockets to IPv6 as well as IPv4. This is easily accomplished by using "::" instead of "0.0.0.0" anywhere a bind IP address is used. Currently companion cannot be accessed over IPv6 even when the host is IPv6 enabled.

Usecases

Because IPv4 is obsolete!

No really, but here's some more concrete use cases:

  • Allowing Companion to function on an IPv6 only host (this is actually a thing, and this is how I found this issue).
  • Allowing Companion to be directly reachable from remote sites without inbound NAT rules, or on Internet connections that no longer provide public IPv4 addresses. This is the case in many networks in many parts of the world. Even when private IPv4 addresses are configured on the network for device control, the lack of a public IPv4 address prevents remote access. Listening on IPv6 would allow remote access (suitably firewalled) across the Internet.
  • Allowing Satellite on an IPv6 only host to access a dual-stack Companion instance. We don't need to turn off IPv4, we just need to allow incoming IPv6 connections.
  • IPv6 is the default protocol on many operating systems, so if a hostname is used to connect to the Companion instance on dual-stack host, the connection will fail because the IPv6 address is being used, but Companion is only listening on IPv4.

This is a fairly simple change and would be equivalent to setting --admin-address :: on the CLI at run-time. I have tested this behaviour on Linux and it solved the IPv6 issues and did not negatively affect IPv4 (IPv4 clients were still able to connect).

Branch feature/ipv6 was created to explore this. I may be able to make the changes myself with a little guidance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions