why i can access my pi zero w via http://dietpi/

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
songz
Posts: 15
Joined: Sun Feb 11, 2018 3:47 pm

why i can access my pi zero w via http://dietpi/

Post by songz »

for example, I had installed node-red on my pi zero w
and I can access it just http://dietpi:1880/ overall the local network.

before this, I install node-red on raspian. and access it with http://zerow.local:1880
I can access it by zerow.local:1880 on Mac.
but I can not access zero w by zerow.local:1880 on my smartphone.

so, somebody can help me out what made this difference?
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: why i can access my pi zero w via http://dietpi/

Post by Fourdee »

Hi,

You'll need to install avahi-daemon for hostname broadcasting:

Code: Select all

dietpi-software install 152
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
songz
Posts: 15
Joined: Sun Feb 11, 2018 3:47 pm

Re: why i can access my pi zero w via http://dietpi/

Post by songz »

Fourdee wrote:Hi,

You'll need to install avahi-daemon for hostname broadcasting:

Code: Select all

dietpi-software install 152
thank you! so avahi-daemon is pre-install software in DietPi image right?

but I find that in the software additional avahi-daemon is not install currently.
songz
Posts: 15
Joined: Sun Feb 11, 2018 3:47 pm

Re: why i can access my pi zero w via http://dietpi/

Post by songz »

dietpi was clean installed on zero w
without install additional software
and I can access it by http://dietpi/

but a clean install of raspian lite
it can access by http://pi.local/
but it can not access on android phone

wanna know what makes this difference
songz
Posts: 15
Joined: Sun Feb 11, 2018 3:47 pm

Re: why i can access my pi zero w via http://dietpi/

Post by songz »

finally , I find out I can access my pi by pi.local/ and pi/

that is the same with dietpi

thanks !
User avatar
WarHawk
Posts: 634
Joined: Thu Jul 20, 2017 8:55 am

Re: why i can access my pi zero w via http://dietpi/

Post by WarHawk »

did you modify your hosts file?

How did you get it working?
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: why i can access my pi zero w via http://dietpi/

Post by Fourdee »

songz wrote:dietpi was clean installed on zero w
without install additional software
and I can access it by http://dietpi/

but a clean install of raspian lite
it can access by http://pi.local/
but it can not access on android phone

wanna know what makes this difference
avahi-daemon is not installed by default with DietPi. The additional package increases cpu/mem usage (spawns a process). And, in most cases, is not required by the user.

However, we do offer it for additional installation in dietpi-software, if required :)
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
songz
Posts: 15
Joined: Sun Feb 11, 2018 3:47 pm

Re: why i can access my pi zero w via http://dietpi/

Post by songz »

WarHawk wrote:did you modify your hosts file?

How did you get it working?
i do not modify any hosts file or something.

but I found it would not work with my tp-link router. must install avahi to enable .local

i am not a professor with networking.
Narfel
Posts: 17
Joined: Wed Jan 31, 2018 10:19 am

Re: why i can access my pi zero w via http://dietpi/

Post by Narfel »

It's also a client side requirement to be able to resolve .local via zeroconf/bonjour. Out of the box Android can't do that and you need a special app handling that. MacOS/iOS comes preinstalled with the bonjour service and can resolve it. Linux needs avahi to do that and Windows needs bonjour (standalone or via iTunes) installed as a service. This is often overlooked and blamed on the server, but you can serve up name.local all day long and you won't be able to resolve it if you do not have these prerequisites.
Post Reply