-->
Page 2 of 3

Re: extra mDNS services in combination with ArduinoOTA?

PostPosted: Tue Jun 28, 2016 8:22 am
by Stu
Interesting point about that name resolution already done. OTA over the Arduino IDE works perfectly (always -- really an amazing thing; _arduino._tcp).

Telnet works fine when connecting straight to the IP, just not when using the domain name..

If in your code you employ both OTA and mDNS, then I'd gladly have a look at it :D

Re: extra mDNS services in combination with ArduinoOTA?

PostPosted: Tue Jun 28, 2016 8:58 am
by martinayotte
Stu wrote:Telnet works fine when connecting straight to the IP, just not when using the domain name..

I don't see why ...

Which OS are you using ?
Which Term application are you using ? (maybe yours is simply not mDNS aware)

For me, on Linux, I'm simply doing a "telnet myespap-0b612d.local 23"

Re: extra mDNS services in combination with ArduinoOTA?

PostPosted: Tue Jun 28, 2016 12:55 pm
by Stu
Found the problem. Besides setting the hostname at MDNS.begin(), setting the hostname in the WiFi object is also required; using WiFi.hostname(). ...wonders what happens if they are set differently...

:roll: :idea: :D

Thanks for chipping in anyway!

Re: extra mDNS services in combination with ArduinoOTA?

PostPosted: Tue Jun 28, 2016 1:41 pm
by martinayotte
Good !
Yes, in my case, I've always set the hostname too so that my home DHCP is aware of it for the leased IP list.