Skip to content

How to make Zeroconf available on all interfaces [eth0/wlan0] #296

@jpiwek

Description

@jpiwek

Hi,

I am playing with Zeroconf on an embedded linux system with a HTTP Server .
All interfaces have DHCP running.

How to configure Py-Zeroconf on all interfaces (eth0/wlan0) with DHCP on?
When I add the IP on eth0 e.g. 192.168.96.103 as in the code snippet below. Then it works accessing through PC on the networks, oherwise not.

addresses = [socket.inet_aton("192.168.96.103")]
   
info = ServiceInfo(
        "_http._tcp.local.",
        z_name,
        addresses=addresses,
        port=port,
        properties=desc,
        server=z_server,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions