webrtc-rs / mdns

A pure Rust implementation of mDNS
https://webrtc.rs
Apache License 2.0
15 stars 9 forks source link

Cannot bind 5353 port in linux #1

Closed rainliu closed 3 years ago

rainliu commented 3 years ago

UDP 5353 port is used by zeroconf service, rust can’t bind it again.

however, golang ListenUDP works fine.

rainliu commented 3 years ago

Even the following code works fine for golang version, which binding the same port twice with net.ListenUDP. Interesting. How to do the same thing in Rust?

https://play.golang.org/p/ct0VWgkUlFN