# Device office, and Public URL not working but device reachable via local network IP address

**URL:** <https://forums.balena.io/t/device-office-and-public-url-not-working-but-device-reachable-via-local-network-ip-address/5901>\
**Category:** balenaOS\
**Created:** [April 5, 2019, 5:36pm UTC](https://forums.balena.io/t/device-office-and-public-url-not-working-but-device-reachable-via-local-network-ip-address/5901 "2019-04-05T17:36:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason10](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jason10/32/1464_2.png) [@jason10](https://forums.balena.io/u/jason10)\
**Post date:** [April 5, 2019, 5:36pm UTC](https://forums.balena.io/t/device-office-and-public-url-not-working-but-device-reachable-via-local-network-ip-address/5901/1 "2019-04-05T17:36:11Z")

</div>

We have a device that connects reliably to a Wifi network and we can reach via a the local network ip address, eg [http://10.10.0.2](http://10.10.0.2)

But it does not always connect to the balena cloud dashboard, and the public URL also does not work in this condition. Instead we get a 503 error. A power cycle of the device often fixes this issue.

Q1: does the public URL require the device to be “online” (as listed on the dashboard)?  
Q2: which logs should we try to look at?  
Q3: should we try checking through the balena api for a combination of device online, public url enabled, a non-200 response from the public url, and reboot automatically?

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [April 5, 2019, 5:41pm UTC](https://forums.balena.io/t/device-office-and-public-url-not-working-but-device-reachable-via-local-network-ip-address/5901/4 "2019-04-05T17:41:15Z")

</div>

Hi @jason10!

> [@jason10](#):
>
> Q1: does the public URL require the device to be “online” (as listed on the dashboard)?

Yes, the device public URL is going through our VPN service, and the device “online” status just means that the device is successfully connected to our VPN.

> [@jason10](#):
>
> Q2: which logs should we try to look at?

Probably the best is the `openvpn` logs?

```auto
journalctl -a -u openvpn

```

If that has errors, that would explain this issue.

> [@jason10](#):
>
> Q3: should we try checking through the balena api for a combination of device online, public url enabled, a non-200 response from the public url, and reboot automatically?

This shouldn’t be necessary. The VPN connection should work, and if not, we’ll likely want to look into that. Also might be possible to just restart the openvpn service (if that’s the issue), and see if it works on retry. That would be possible (as a workaround until getting to the bottom of it) to trigger a restart to the service over `dbus` from a user container, for example.

Also, what OS version are you running?

---

<div class="post-metadata">

**Author:** ![jason10](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jason10/32/1464_2.png) [@jason10](https://forums.balena.io/u/jason10)\
**Post date:** [April 5, 2019, 6:23pm UTC](https://forums.balena.io/t/device-office-and-public-url-not-working-but-device-reachable-via-local-network-ip-address/5901/5 "2019-04-05T18:23:10Z")

</div>

Thanks for the answers.

CTI Orbitty with Jetson TX2, Resin OS 2.14.0+rev3
