0

I'm working with the Octopi distro and it's supposed to have a few networking things already put together to make things easy out of the box. One of them is an easy-to-use hostname and/or DNS name: octopi.local. However it doesn't work. I can't ping it or resolve it from a Windows 7 machine. My Netgear WNDR3800 sees the name just fine in its list of connected devices.

I'm using a Wi-Pi for wireless networking on the Octopi, and have configured the file octopi-network.txt with my wireless settings. I can access the Octopi's web interface from the Windows machine by using the IP address. The Windows machine is using Wi-Fi as well.

I've already started another question on the Linux stack Exchange to try to get hostname resolution working on a different Raspberry Pi, and never got that working.

This question is different because Octopi uses avahi (aka Bonjour) (Here's a how-to) and all the docs and videos refer to octopi.local, thereby implying that we're working with a DNS name. From what I can tell, it should work out of the box.

If I try to ping/nslookup octopi/octopi.local and it fails, what should I look at next?

On the Windows machine, I have tried to do an ipconfig /flushdns, nslookup octopi and nslookup octopi.local with no success.

  • Are you certain that the avahi-daemon service is running, and that it is not blocked by a firewall? – BRPocock Aug 21 '15 at 18:42
1

As it turns out, there is an FAQ question on the Octprint/Octopi FAQ that addresses this very same question, and there's plenty of detail too (reprinted below).

I can't reach my OctoPi under octopi.local under Windows, why?

The third post has some good details about this issue:

Octoprint discussion


I can't reach my OctoPi under octopi.local under Windows, why?

That .local part makes it a special address. Linux and MacOS already know how to understand it, Windows needs a little extra help.

You'll have to download the Bonjour Print Services for Windows and install them. Then make sure your Windows Firewall allows Traffic on UDP Port 5353 and grant internet access to the mDNSresponder.exe (part of the Bonjour support you just installed).

Note: This will only work if you home LAN is not set up to use .local as it's own LAN specific top level domain. This should usually not be the case, but if it is and you can't get your home LAN setup differently (e.g. by switching to .lan) you'll need to access your OctoPi instance by its IP address, sorry.

| improve this answer | |
0

Avahi doesn't support .local domains, so you'll have to use a different name if you want to use DNS from another host. the .local should work on the Pi itself though I expect.

| improve this answer | |
  • 1
    It does support .local, for multicast. It does not support it when it's configured through an unicast (ie, traditional DNS) domain server. – BRPocock Aug 21 '15 at 18:41
  • Would that be expected to work with, say, ping then? – Eric Renouf Aug 21 '15 at 18:43
  • From any host with mDNS, yes; .local is the default multicast, local-link domain. It does require the Avahi (or Bonjour) mDNS server be running on the host, and an mDNS-aware resolver (nss-mdns) on the other machine looking-up the name. – BRPocock Aug 21 '15 at 18:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.