Getting my own hostname from mDNS - how?

davepl
Posts: 29
Joined: Wed Jun 27, 2018 5:29 pm

Getting my own hostname from mDNS - how?

Postby davepl » Sun Oct 14, 2018 5:30 pm

I would like to register a number of devices with mDNS with the same base name (like MYDEVICE) and have it assign the uniques, like MYDEVICE002 and so on. My understanding is that mDNS will do this.

However, I have no idea how to get the result! I know what I asked for, but what's my hostname when it's assigned? I tried mDNS.hostname(0) but that comes back as a blank string.

So simple, and yet...

davepl
Posts: 29
Joined: Wed Jun 27, 2018 5:29 pm

Re: Getting my own hostname from mDNS - how?

Postby davepl » Wed Oct 17, 2018 3:32 pm

Any ideas?

Who is online

Users browsing this forum: lor_pig2 and 71 guests