mdns icon indicating copy to clipboard operation
mdns copied to clipboard

Nodes not discovering

Open Licenser opened this issue 12 years ago • 4 comments

Hi there I as pretty excited finding this :) but sadly I totally fail to get it working :(

I see the nodes in the ./browse.sh script but they don't seem to see eachother at all.

Browsing for _erlang._tcp
Talking to DNS SD Daemon at Mach port 5891
Timestamp     A/R Flags Domain                   Service Type             Instance Name
16:41:35.161  Add     1 local.                   _erlang._tcp.            snarl@Schroedinger
16:41:35.161  Add     1 local.                   _erlang._tcp.            wiggle@Schroedinger
16:41:35.161  Add     0 local.                   _erlang._tcp.            sniffle@Schroedinger

On the two nodes I ran (same on the second node with equivalent results):

([email protected])5> mdns:start().
ok
([email protected])7> mdns:discovered().
[]
([email protected])9> mdns_node_discovery:advertise().
ok
([email protected])10> mdns:discovered().              
[]
([email protected])11> nodes().
[]

Licenser avatar Jul 07 '12 14:07 Licenser

Hi. I've just pushed a commit which causes the connect handler to crash if it can't connect to the newly discovered node. Also changed the advertisement so that the hostname is included as part of the broadcast resource record, which is now used to connect the nodes together.

On one host:

./start-dev.sh a

On the same or different host:

./start-dev.sh b

On the original host:

([email protected])1> nodes().
['[email protected]']

On the original host:

([email protected])1> nodes().
['[email protected]']

If they fail to connect, the handler should now crash. Usual things to check - do a net_adm:ping(Host) to make sure that they can connect normally.

shortishly avatar Jul 08 '12 11:07 shortishly

Hi, thanks for looking into this, but for some reason I still face the same probem. I ran exactly ./start-dev.sh a and b (smae OSX host) and did a ./browse.sh which shows both ondes, still the nodes don't see each other.

Licenser avatar Jul 22 '12 23:07 Licenser

I've tracked down the problem - it seems that local nodes are not discovered, explictly excluded. Is there a reason behind that?

Licenser avatar Jul 23 '12 13:07 Licenser

Not a good reason. I've pushed a couple of updates that work with local (same epmd) nodes.

On 23 July 2012 14:15, Heinz N. Gies [email protected] wrote:

I've tracked down the problem - it seems that local nodes are not discovered, explictly excluded. Is there a reason behind that?


Reply to this email directly or view it on GitHub: https://github.com/shortishly/erlang-mdns/issues/1#issuecomment-7177485

shortishly avatar Jul 30 '12 12:07 shortishly