Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDNS query #4600

Closed
richardschneider opened this issue Jan 22, 2018 · 5 comments
Closed

MDNS query #4600

richardschneider opened this issue Jan 22, 2018 · 5 comments

Comments

@richardschneider
Copy link

richardschneider commented Jan 22, 2018

Version information:

go-ipfs version: 0.4.13-
Repo version: 6
System version: amd64/windows
Golang version: go1.9.2

Type: Question

Description:

Trying to do a mdns (Multicast DNS) query to go-ipfs with no luck. go-ipfs and the query app are running on the same host. I get no response to the query.

What is the service name? I've tried _ipfs-discovery._udp.local. and _ipfs-discovery._upd.

If I run js-ipfs, it will respond to _ipfs-discovery._udp.

@Stebalien
Copy link
Member

Stebalien commented Jan 28, 2018

It should be _ipfs-discovery._udp. Just to make sure, ipfs config 'Discovery.MDNS.Enabled' returns true?

Actually, what version are you using? 0.4.13 doesn't build on windows, IIRC.

@richardschneider
Copy link
Author

  • I'm on AMD, so 0.4.13 works. It's only win32 (x86) that it fails on
  • Yes, it enabled

@richardschneider
Copy link
Author

So it looks like it is broken. See also libp2p/js-libp2p-mdns#67

@momack2 momack2 added this to Inbox in ipfs/go-ipfs May 9, 2019
@richardschneider
Copy link
Author

If any one is still interested, the issue is that go is sending a legacy unicast query. Which means that it is not sending the query to port 5353.

I changed my code to send the DNS answer to the specific port of the query and go-ipfs was happy. It connected to my node!

@Stebalien
Copy link
Member

Wow. Something else to add to libp2p/go-libp2p#623.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

2 participants