Skip to content

Advertisements published on first interface only?  #3

@svogl

Description

@svogl

Hi,
we have an embedded system with a number of interfaces - eth0, wlan0, bat0 - to name a few.
The following code runs

var DNSSD = require("dnssd");

let _dnsdsBrowser = new DNSSD.Browser(DNSSD.tcp('_mqtt'));
let _dnsdsAdvMqtt = new DNSSD.Advertisement(DNSSD.tcp('_funky'), 2883, { name: 'FUNKY' });
let _dnsdsAdvMqttWS = new DNSSD.Advertisement(DNSSD.tcp('_funky-ws'), 3001, { name: 'FUNKY WS' });

_dnsdsAdvMqtt.start();

but the services show up only on the first interface that has been detected (eth0 in our case, where we don't want it ... ) -- not even at localhost.

How can we make sure it is accessible from the other network participants?
Simon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions