# Dashboard wont load on localhost unless the Pi has a network connecttion?

**URL:** <https://discourse.nodered.org/t/dashboard-wont-load-on-localhost-unless-the-pi-has-a-network-connecttion/70482>\
**Category:** Dashboard\
**Created:** [12 November 2022 06:00 UTC](https://discourse.nodered.org/t/dashboard-wont-load-on-localhost-unless-the-pi-has-a-network-connecttion/70482 "2022-11-12T06:00:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rack201](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rack201](https://discourse.nodered.org/u/rack201)\
**Post date:** [12 November 2022 06:00 UTC](https://discourse.nodered.org/t/dashboard-wont-load-on-localhost-unless-the-pi-has-a-network-connecttion/70482/1 "2022-11-12T06:00:50Z")

</div>

My project is running some simple python code that outputs sensor values to a Node Red dashboard all running on the same Pi 4 in a vehicle. The Pi starts Node Red on localhost, starts the Python script and opens the dashboard URL ([http://localhost:1880/ui](http://localhost:1880/ui)) via Chromium in Kiosk mode on boot.

My problem is that when the Pi is able to connect to WiFi (e.g. my home network) it all works fine. When the Pi doesn't have an internet connection (i.e. most of the time) the Chromium won't load the dashboard. I can't work this out as localhost should be available all the time and I have a delay before Chromium loads.

When this happens, if I open a hotspot on my phone that the Pi can connect to, Chromium is then able to connect to the dashboard and things work.

May not be a Node-Red problem - I can't see anything in dmesg or syslog that gives me any clues.. Any help would be great.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [12 November 2022 06:13 UTC](https://discourse.nodered.org/t/dashboard-wont-load-on-localhost-unless-the-pi-has-a-network-connecttion/70482/2 "2022-11-12T06:13:04Z")

</div>

In a non-kiosk-mode browser, could you right click\> inspect element look at the network tab (or console tab) and check what it is trying to load that it cannot find ?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 November 2022 07:09 UTC](https://discourse.nodered.org/t/dashboard-wont-load-on-localhost-unless-the-pi-has-a-network-connecttion/70482/3 "2022-11-12T07:09:23Z")

</div>

Does it load if you open the browser in normal mode and manually refresh the browser page? If not then what error do you see in the browser?

---

<div class="post-metadata">

**Author:** ![rack201](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rack201](https://discourse.nodered.org/u/rack201)\
**Post date:** [13 November 2022 08:53 UTC](https://discourse.nodered.org/t/dashboard-wont-load-on-localhost-unless-the-pi-has-a-network-connecttion/70482/4 "2022-11-13T08:53:17Z")

</div>

Went out in the car, away from my home network with a mouse and keyboard and screen and it's now working. Frustrating as it seem intermittent.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [13 November 2022 09:00 UTC](https://discourse.nodered.org/t/dashboard-wont-load-on-localhost-unless-the-pi-has-a-network-connecttion/70482/5 "2022-11-13T09:00:40Z")

</div>

> intermittent.

This is probably browser caching whatever it needed from some source.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [13 November 2022 09:21 UTC](https://discourse.nodered.org/t/dashboard-wont-load-on-localhost-unless-the-pi-has-a-network-connecttion/70482/6 "2022-11-13T09:21:33Z")

</div>

What error do you see when it fails?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 December 2022 09:22 UTC](https://discourse.nodered.org/t/dashboard-wont-load-on-localhost-unless-the-pi-has-a-network-connecttion/70482/7 "2022-12-13T09:22:12Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
