Skip to content

homekit/mdns does not work on Docker-like IP-addresses #2266

Done

Description

@MichlW

I get this error when setting up my streams for HomeKit: error="no interfaces for listen"

23:07:54.630 INF go2rtc platform=windows/amd64 revision=b5948cf version=1.9.14
23:07:54.665 INF config path="d:\\Programme\\go2rtc\\go2rtc.yaml"
23:07:54.667 INF [api] listen addr=:1984
23:07:54.667 INF [rtsp] listen addr=:8554
23:07:54.677 INF [webrtc] listen tcp addr=[::]:8555
23:07:54.681 INF [webrtc] listen udp addr=172.16.2.21:8555
23:07:54.693 ERR github.com/AlexxIT/go2rtc/internal/homekit/homekit.go:122 > error="no interfaces for listen"

At the moment i struggeled for more than 6 hours in setting up my streams for homekit, everything else working fine.
I tested go2rtc as LXC (priviledged, unpriviledged) in proxmox (installed by community script) and after that several times in windows 11 25H2.
That error is persistant in 100% of cases and I have no idea what am I doing wrong.
My config is:

streams:
  kamera_haustuer:
    - rtsp://kamera-haustuer.lan/ch0_0.h264#video=copy&audio=none&buffer=0
rtsp:
  listen: ":8554"
api:
  listen: ":1984"
webrtc:
  listen: ":8555"
homekit:
  kamera_haustuer:
Pinned by AlexxIT

Activity

  1. skrashevich commented on May 19, 2026

    @skrashevich
    Collaborator

    Show the command output
    ipconfig
    netstat -an

  2. MichlW commented on May 21, 2026

    @MichlW
    Author
    root@go2rtc:~# ip addr
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host noprefixroute 
           valid_lft forever preferred_lft forever
    2: eth0@if21: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
        link/ether bc:24:11:26:9f:00 brd ff:ff:ff:ff:ff:ff link-netnsid 0
        inet 172.16.2.100/24 brd 172.16.2.255 scope global dynamic eth0
           valid_lft 658243sec preferred_lft 658243sec
        inet6 fd00::be24:11ff:fe26:9f00/64 scope global dynamic mngtmpaddr proto kernel_ra 
           valid_lft 7142sec preferred_lft 3542sec
        inet6 fd81:190d:9902:4d51:be24:11ff:fe26:9f00/64 scope global deprecated dynamic mngtmpaddr proto kernel_ra 
           valid_lft 1679sec preferred_lft 0sec
        inet6 2001:9e8:830a:6300:be24:11ff:fe26:9f00/64 scope global dynamic mngtmpaddr proto kernel_ra 
           valid_lft 7142sec preferred_lft 3542sec
        inet6 fe80::be24:11ff:fe26:9f00/64 scope link proto kernel_ll 
           valid_lft forever preferred_lft forever
    
    root@go2rtc:~# netstat -an
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State      
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
    tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN     
    tcp        0      0 172.16.2.100:40508      151.101.130.132:80      TIME_WAIT  
    tcp6       0      0 :::22                   :::*                    LISTEN     
    tcp6       0      0 :::8554                 :::*                    LISTEN     
    tcp6       0      0 :::8555                 :::*                    LISTEN     
    tcp6       0      0 ::1:25                  :::*                    LISTEN     
    tcp6       0      0 :::1984                 :::*                    LISTEN     
    tcp6       0      0 172.16.2.100:1984       172.16.2.21:63433       ESTABLISHED
    udp        0      0 0.0.0.0:68              0.0.0.0:*                          
    udp        0      0 172.16.2.100:8555       0.0.0.0:*                          
    Active UNIX domain sockets (servers and established)
    Proto RefCnt Flags       Type       State         I-Node   Path
    unix  3      [ ]         STREAM     CONNECTED     2450492  
    unix  3      [ ]         STREAM     CONNECTED     2450544  
    unix  2      [ ACC ]     STREAM     LISTENING     2444855  /run/systemd/netif/io.systemd.Network
    unix  3      [ ]         STREAM     CONNECTED     2450486  
    unix  3      [ ]         STREAM     CONNECTED     2450529  
    unix  2      [ ACC ]     STREAM     LISTENING     2444897  /run/systemd/journal/io.systemd.journal
    unix  3      [ ]         STREAM     CONNECTED     2450514  
    unix  3      [ ]         STREAM     CONNECTED     2450496  
    unix  3      [ ]         STREAM     CONNECTED     2450493  
    unix  3      [ ]         STREAM     CONNECTED     2465910  
    unix  3      [ ]         STREAM     CONNECTED     2450517  
    unix  3      [ ]         DGRAM      CONNECTED     2444860  
    unix  3      [ ]         STREAM     CONNECTED     2431949  
    unix  2      [ ]         DGRAM      CONNECTED     2445926  
    unix  3      [ ]         DGRAM      CONNECTED     2432620  /run/systemd/notify
    unix  2      [ ]         DGRAM      CONNECTED     2449398  
    unix  3      [ ]         STREAM     CONNECTED     2450516  
    unix  2      [ ACC ]     STREAM     LISTENING     2432628  /run/systemd/userdb/io.systemd.DynamicUser
    unix  2      [ ACC ]     STREAM     LISTENING     2432629  /run/systemd/io.systemd.ManagedOOM
    unix  3      [ ]         STREAM     CONNECTED     2450546  
    unix  2      [ ACC ]     STREAM     LISTENING     2450480  public/pickup
    unix  2      [ ACC ]     STREAM     LISTENING     2431676  /run/systemd/io.systemd.Credentials
    unix  2      [ ACC ]     STREAM     LISTENING     2450484  public/cleanup
    unix  3      [ ]         STREAM     CONNECTED     2450549  
    unix  2      [ ACC ]     STREAM     LISTENING     2450487  public/qmgr
    unix  8      [ ]         DGRAM      CONNECTED     2431677  /run/systemd/journal/dev-log
    unix  5      [ ]         DGRAM      CONNECTED     2431678  /run/systemd/journal/socket
    unix  2      [ ]         DGRAM      CONNECTED     2444850  
    unix  2      [ ACC ]     STREAM     LISTENING     2431679  /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED     2450482  
    unix  3      [ ]         STREAM     CONNECTED     2450507  
    unix  3      [ ]         STREAM     CONNECTED     2450502  
    unix  2      [ ACC ]     STREAM     LISTENING     2450491  private/tlsmgr
    unix  3      [ ]         STREAM     CONNECTED     2465839  
    unix  2      [ ACC ]     STREAM     LISTENING     2450494  private/rewrite
    unix  3      [ ]         STREAM     CONNECTED     2450488  
    unix  3      [ ]         STREAM     CONNECTED     2433009  /run/systemd/journal/stdout
    unix  2      [ ACC ]     STREAM     LISTENING     2450497  private/bounce
    unix  3      [ ]         STREAM     CONNECTED     2450540  
    unix  2      [ ACC ]     STREAM     LISTENING     2450500  private/defer
    unix  2      [ ACC ]     STREAM     LISTENING     2450503  private/trace
    unix  2      [ ACC ]     STREAM     LISTENING     2450506  private/verify
    unix  2      [ ACC ]     STREAM     LISTENING     2450509  public/flush
    unix  2      [ ACC ]     STREAM     LISTENING     2450512  private/proxymap
    unix  2      [ ACC ]     STREAM     LISTENING     2450515  private/proxywrite
    unix  3      [ ]         DGRAM      CONNECTED     2445799  
    unix  2      [ ACC ]     STREAM     LISTENING     2450518  private/smtp
    unix  3      [ ]         STREAM     CONNECTED     2450522  
    unix  2      [ ACC ]     STREAM     LISTENING     2450521  private/relay
    unix  2      [ ACC ]     STREAM     LISTENING     2450524  public/showq
    unix  2      [ ACC ]     STREAM     LISTENING     2450527  private/error
    unix  2      [ ACC ]     STREAM     LISTENING     2450530  private/retry
    unix  2      [ ACC ]     STREAM     LISTENING     2450533  private/discard
    unix  3      [ ]         STREAM     CONNECTED     2445871  /run/dbus/system_bus_socket
    unix  2      [ ACC ]     STREAM     LISTENING     2450536  private/local
    unix  2      [ ACC ]     STREAM     LISTENING     2450539  private/virtual
    unix  2      [ ACC ]     STREAM     LISTENING     2450542  private/lmtp
    unix  3      [ ]         DGRAM      CONNECTED     2445798  
    unix  2      [ ACC ]     STREAM     LISTENING     2450545  private/anvil
    unix  2      [ ACC ]     STREAM     LISTENING     2450548  private/scache
    unix  2      [ ]         DGRAM                    2450551  public/postlog
    unix  3      [ ]         STREAM     CONNECTED     2450481  
    unix  3      [ ]         STREAM     CONNECTED     2450534  
    unix  2      [ ]         DGRAM      CONNECTED     12836302 
    unix  3      [ ]         STREAM     CONNECTED     2450511  
    unix  3      [ ]         STREAM     CONNECTED     2450523  
    unix  2      [ ]         DGRAM      CONNECTED     2449408  
    unix  3      [ ]         STREAM     CONNECTED     2450479  
    unix  3      [ ]         STREAM     CONNECTED     2450528  
    unix  2      [ ACC ]     STREAM     LISTENING     2431913  /run/systemd/io.systemd.sysext
    unix  3      [ ]         STREAM     CONNECTED     2450543  
    unix  3      [ ]         STREAM     CONNECTED     2450519  
    unix  3      [ ]         STREAM     CONNECTED     2450531  
    unix  3      [ ]         DGRAM      CONNECTED     2444859  
    unix  3      [ ]         STREAM     CONNECTED     2450505  
    unix  3      [ ]         STREAM     CONNECTED     2450513  
    unix  3      [ ]         STREAM     CONNECTED     2434177  /run/dbus/system_bus_socket
    unix  3      [ ]         STREAM     CONNECTED     2450532  
    unix  2      [ ACC ]     STREAM     LISTENING     2432890  /run/dbus/system_bus_socket
    unix  3      [ ]         STREAM     CONNECTED     2450520  
    unix  3      [ ]         STREAM     CONNECTED     2450485  
    unix  2      [ ACC ]     STREAM     LISTENING     2432892  /run/ssh-unix-local/socket
    unix  2      [ ACC ]     STREAM     LISTENING     2432893  /run/systemd/io.systemd.Hostname
    unix  3      [ ]         STREAM     CONNECTED     2450510  
    unix  3      [ ]         STREAM     CONNECTED     2450553  
    unix  3      [ ]         STREAM     CONNECTED     2450478  
    unix  3      [ ]         STREAM     CONNECTED     2450535  
    unix  3      [ ]         STREAM     CONNECTED     2445859  
    unix  3      [ ]         DGRAM      CONNECTED     2432624  
    unix  3      [ ]         DGRAM      CONNECTED     2432623  
    unix  3      [ ]         STREAM     CONNECTED     2432927  /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED     2435099  
    unix  3      [ ]         DGRAM      CONNECTED     2432622  
    unix  3      [ ]         STREAM     CONNECTED     2450538  
    unix  3      [ ]         STREAM     CONNECTED     2450547  
    unix  3      [ ]         STREAM     CONNECTED     2450498  
    unix  3      [ ]         STREAM     CONNECTED     2450501  
    unix  3      [ ]         DGRAM      CONNECTED     2444858  
    unix  2      [ ]         DGRAM      CONNECTED     2444899  
    unix  3      [ ]         STREAM     CONNECTED     2450526  
    unix  3      [ ]         STREAM     CONNECTED     2465840  /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED     2432987  /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED     2435098  
    unix  3      [ ]         STREAM     CONNECTED     2465911  /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED     2450537  
    unix  3      [ ]         STREAM     CONNECTED     2444788  /run/dbus/system_bus_socket
    unix  2      [ ]         DGRAM      CONNECTED     2434267  
    unix  3      [ ]         DGRAM      CONNECTED     2432621  
    unix  2      [ ]         DGRAM      CONNECTED     2431950  
    unix  3      [ ]         STREAM     CONNECTED     2433008  
    unix  3      [ ]         DGRAM      CONNECTED     2444857  
    unix  3      [ ]         STREAM     CONNECTED     2450550  
    unix  3      [ ]         STREAM     CONNECTED     2450541  
    unix  3      [ ]         STREAM     CONNECTED     2450489  
    unix  3      [ ]         STREAM     CONNECTED     2450508  
    unix  3      [ ]         STREAM     CONNECTED     2450499  
    unix  3      [ ]         STREAM     CONNECTED     2450504  
    unix  3      [ ]         STREAM     CONNECTED     2432985  
    unix  3      [ ]         STREAM     CONNECTED     2450525  
    unix  2      [ ]         DGRAM      CONNECTED     2435124  
    unix  3      [ ]         STREAM     CONNECTED     2450552  
    unix  3      [ ]         STREAM     CONNECTED     2444829  /run/systemd/journal/stdout
    unix  2      [ ]         DGRAM      CONNECTED     2434166  
    unix  3      [ ]         STREAM     CONNECTED     2450495  
    unix  2      [ ACC ]     STREAM     LISTENING     2445800  /run/systemd/private
    unix  3      [ ]         STREAM     CONNECTED     2434176  @7a380e281f4c14d4/bus/systemd-logind/system
    unix  3      [ ]         STREAM     CONNECTED     2444856  @d547aef4feb322b3/bus/systemd-network/bus-api-network
    unix  3      [ ]         STREAM     CONNECTED     2445801  @2860d3828b19fd2a/bus/systemd/bus-api-system
    
  3. added
    kind/support
    area/homekit
    on Oct 3, 2026
  4. self-assigned this
    on Oct 3, 2026
  5. MichlW commented on Oct 28, 2026

    @MichlW
    Author

    I maybe need your help regarding that problem again. I saw the work on IPv6 things in #2305 and think about, that this therefore should not be happen if I would setup go2rtc on a machine not blocking mdns by another service.
    Now I am struggeling with this on avery machine i tried. Originally the message came up on a highly heterogenious used Proxmox server on a thin client handling a lot of things. There it is really possible that mdns have problems on the virtualized network interfaces or bridges or whatever.

    BUT why the heck I also get that message on:

    • our family windows 11 laptop with no special network service.
    • a clean and empty fallback proxmox server with no other container/vm.

    Its everytime the same behaviour: error="no interfaces for listen".
    No system can ever bind a interface for HomeKit. :-(

  6. samsam-rolon commented on Nov 23, 2026

    @samsam-rolon

    Hello,
    I'm figuring the same issue.
    I'm using go2rtc v1.9.14 with frigate v18 on LXC (Proxmox, deployed with this script)
    I've noticed that this only related to an activation of homekit in go2rtc configuration.

  7. AlexxIT commented on Nov 23, 2026

    @AlexxIT
    Owner

    The problem is obvious. mDNS ignores Docker-like IP addresses. That's exactly what your local network uses.

  8. changed the title [-]Huge problems in setting up HomeKit: homekit.go:122 > error="no interfaces for listen"[/-] [+]homekit/mdns does not work on Docker-like IP-addresses[/+] on Nov 23, 2026
  9. added
    kind/bug
    and removed
    kind/support
    on Nov 23, 2026
  10. samsam-rolon commented on Nov 23, 2026

    @samsam-rolon

    However, I am running homebridge on this VLAN.
    I didn't found the configuration to "add an exception"

  11. AlexxIT commented on Nov 23, 2026

    @AlexxIT
    Owner

    There are no exceptions to this setting. Unfortunately, there is no other reliable way to exclude the Docker IP from broadcast requests.

    go2rtc/pkg/mdns/client.go

    Lines 173 to 175 in 253c178

    nets, err := xnet.IPNets(func(ip net.IP) bool {
    return !xnet.Docker.Contains(ip)
    })

  12. MichlW commented on Nov 23, 2026

    @MichlW
    Author

    Can this be workarounded prior to an go2rtc update release? Unfortunately, I can't even quickly reconfigure my network settings.
    Any Ideas?

  13. AlexxIT commented on Nov 23, 2026

    @AlexxIT
    Owner

    The idea is to disable this limitation. Very few people use these strange IP addresses on their home networks, but they do exist.
    However, traffic on Docker's private interfaces can cause problems for various go2rtc modules.

  14. added this to the master milestone on Nov 23, 2026
  15. AlexxIT commented on Nov 28, 2026

    @AlexxIT
    Owner

    Fixed in master

  16. samsam-rolon commented on Nov 28, 2026

    @samsam-rolon

    Great !
    Do you know when you plan to release it ? To test it before ?
    Simple question. Is it easy to "fix it" for the frigate bundle in go2RTC

  17. AlexxIT commented on Nov 29, 2026

    @AlexxIT
    Owner

    Release v1.10.0 is now available.

  18. MichlW commented on Nov 30, 2026

    @MichlW
    Author

    Just deployed 1.10.0 as an LXC on my Proxmox host. Now its working without problems.
    Thank you very much for your patience and all the work on go2rtc.
    Very nice project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/homekitkind/bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions