# local mode development, but from a remote location?

**URL:** <https://forums.balena.io/t/local-mode-development-but-from-a-remote-location/369822>\
**Category:** General\
**Created:** [January 30, 2024, 12:07am UTC](https://forums.balena.io/t/local-mode-development-but-from-a-remote-location/369822 "2024-01-30T00:07:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![philletourneau](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/philletourneau/32/2471_2.png) [@philletourneau](https://forums.balena.io/u/philletourneau)\
**Post date:** [January 30, 2024, 12:07am UTC](https://forums.balena.io/t/local-mode-development-but-from-a-remote-location/369822/1 "2024-01-30T00:07:40Z")

</div>

Hi Folks,

I’m working with a device that is in local mode, but occasionally I want to be able to push or stream logs from the device from a different network.

Is there a way to do this? Either with port forwarding through the router, or a VPN connection such as Tailscale maybe?

Thanks.

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [February 5, 2024, 12:04pm UTC](https://forums.balena.io/t/local-mode-development-but-from-a-remote-location/369822/2 "2024-02-05T12:04:21Z")

</div>

Hello @philletourneau that’s a great question!

to use local mode you need to be in the same network, so my recommendation is to try VPN or similar to access to that network.

Let us know if that works!

---

<div class="post-metadata">

**Author:** ![rcooke-warwick](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@rcooke-warwick](https://forums.balena.io/u/rcooke-warwick)\
**Post date:** [February 7, 2024, 2:28pm UTC](https://forums.balena.io/t/local-mode-development-but-from-a-remote-location/369822/3 "2024-02-07T14:28:54Z")

</div>

Hi there,

I think this worked for me in the past - but as long as you have access to ports 48484 (supervisor) and 2375 (balena engine) of the device, local mode pushes should work. I just tried this and it seemed to work:

- first enable local mode on the device
- then use balena tunnel to forward the 2 ports I mentioned to a local port of the same number on your workstation

```auto
balena tunnel <device_uuid> -p 48484:48484

```

and in another terminal:

```auto
balena tunnel <device_uuid> -p 2375:2375

```

- in another terminal, do the balena push to localhost (as you’ve forwarded the device ports to local ports of the correct number):

```auto
balena push 127.0.0.1 (use --debug if you want to see whats happening)

```

---

<div class="post-metadata">

**Author:** ![WesleyGael](https://avatars.discourse-cdn.com/v4/letter/w/f19dbf/32.png) [@WesleyGael](https://forums.balena.io/u/WesleyGael)\
**Post date:** [September 25, 2024, 6:45pm UTC](https://forums.balena.io/t/local-mode-development-but-from-a-remote-location/369822/4 "2024-09-25T18:45:55Z")

</div>

> [@philletourneau](#):
>
> I’m working with a device that is in local mode, but occasionally I want to be able to push or stream logs from the device from a different network.
> 
> Is there a way to do this? Either with port forwarding through the router[,](https://gameroom777.download/) or a VPN connection such as Tailscale maybe?

Have you already tried setting up port forwarding on your router? If so, what issues did you encounter?
