mdns icon indicating copy to clipboard operation
mdns copied to clipboard

Example never returns from stream.nex().await

Open brandonmarzolf opened this issue 2 years ago • 4 comments
trafficstars

The only modification I made to the example code provided in the docs is the SERVICE_NAME to a known service on my network.

Running the program, it never returned any output.

I then commented out the "while loop" and added a single manual entry for the next item and a print statement right before and right after it. This second print statement is never reached.

It looks like "stream.next().await" never returns.

brandonmarzolf avatar Mar 07 '23 22:03 brandonmarzolf

I had the same issue and I think I figured out the problem, at least for me.

If you have multiple network interfaces on your machine, try disabling all, but the one connected to the network you want to send requests on.

With wireshark, I found the mDNS queries were being sent via my Hyper V virtual NIC, which was unexpected. Once I disabled my additional NICs, then it started working just fine.

DJSdev avatar Jan 06 '24 22:01 DJSdev

Same issue. If the network devices are the issue, that is an unacceptable bug. Disabling network devices is either not possible or inappropriate for a given circumstance. This also shouldn't be necessary. Every other library, crate, or shell command I use is otherwise able to access the internet, why is this library different in this regard?

granitDev avatar Mar 01 '24 19:03 granitDev

Not sure why the thumbs down when I was just trying to point out the problem to the maintainer, but okay then.

DJSdev avatar Mar 01 '24 20:03 DJSdev

I'm having the same issue on Windows. Disabled all but my primary ethernet interface, and still no joy.

rektdeckard avatar Apr 23 '24 05:04 rektdeckard