[SOLVED] Arduino Wifi Client Resolve mycomputer.local Address

Hi.

Let's say I have a computer with IP 192.168.0.123, where I'm using Avahi (which is a way to set a .local address for a computer, the details aren't important because it seems to be working) so that it can be accessed by typing mycomputer.local into the URL bar instead of remembering that IP.

Unfortunately, I'm finding that the Arduino (using the ESP8266WiFi library) can't connect to mycomputer.local, even though other computers on my network can connect to mycomputer.local and the Arduino can connect to 192.168.0.123.

A brief google search seems to suggest that I'd have to install something like Bonjour or Avahi on the arduino, but I have no idea how to go about this. All of the things I've found so far are about using the Arduino as a webserver, but I'm using it as a client.

Any help is appreciated. :slight_smile:

Let's say I have a computer with IP 192.168.0.123, where I'm using Avahi

Lets say that probably 99.9% of us have no idea what Avahi is. Lets say that you need to post a link to this thing.

A brief google search seems to suggest that I'd have to install something like Bonjour or Avahi on the arduino, but I have no idea how to go about this.

Pretty simple, really. Go to the Bonjour or Avahi site, and download the package for the Arduino. Follow the instructions on the site to install it.

The details of Avahi probably aren't that important since it's working on the computer it's running on. In short it just allows the computer to be accessed using mycomputer.local instead of the IP. It also acts as a client to allow a computer to connect to mycomputer.local. I don't think there are any implementations of it for Arduino.

The issue is that implementations of Bonjour for Arduino do exist, but they all seem to require a particular Ethernet library rather than the particular wifi library I (unfortunately) need to use. I was wondering if anyone knew of a library that would work for this use case.

The details of Avahi probably aren't that important

Well, OK. I don't believe that for a minute, but I'll get past it.

I don't think there are any implementations of it for Arduino.

That I can believe.

For anyone who finds this by googling it (and I suspect that probably won't be very many people) I found a library that seems to do what I want:

It's an implementation of the Bonjour client for the ESP8266. A little bit fiddly to use, but I'm cautiously optimistic.

EDIT: it works perfectly! Marking this thread as solved.