arduino-libraries / ArduinoMDNS

mDNS Library for Arduino
40 stars 13 forks source link

Wrong Service type in WifiRegisterExample #22

Open Soggy-Pancake opened 1 year ago

Soggy-Pancake commented 1 year ago

The example starts out with udp as the protocol used for mDNS but when registering the service it tries to use TCP which will cause it to crash

image

image

matthewgream commented 1 month ago

This is not a bug. Multicast DNS uses UDP for communication. This example sets up a TCP based server on port 80, then uses MDNS to advertise that TCP service on port 80. This is not a bug and will not crash. You do not understand networking.