# connection sharing

**URL:** <https://forums.balena.io/t/connection-sharing/187757>\
**Category:** Product support\
**Created:** [September 12, 2020, 12:20pm UTC](https://forums.balena.io/t/connection-sharing/187757 "2020-09-12T12:20:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 12, 2020, 12:20pm UTC](https://forums.balena.io/t/connection-sharing/187757/1 "2020-09-12T12:20:26Z")

</div>

Hello

I have a node red project under balena cloud

I would like to create a connection sharing with another device

this device is independent of balena

but I would like to reach this device through my RPI4

a kind of connection sharing where the RPI4 would act as a DHCP server for the device

![diagram](https://global.discourse-cdn.com/balena/original/2X/c/c216bb4e22edf42bbd31c112904bab0e11a57d98.jpeg)

is this achievable?

---

<div class="post-metadata">

**Author:** ![anujdeshpande](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/anujdeshpande/32/3155_2.png) [@anujdeshpande](https://forums.balena.io/u/anujdeshpande)\
**Post date:** [September 14, 2020, 5:44am UTC](https://forums.balena.io/t/connection-sharing/187757/5 "2020-09-14T05:44:18Z")

</div>

Just to understand your question a bit more - you want the device to be connected to a Pi4, which itself is getting it’s internet from a PC. Is that right?

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 14, 2020, 3:13pm UTC](https://forums.balena.io/t/connection-sharing/187757/7 "2020-09-14T15:13:08Z")

</div>

I use a software on a pc that sends data in udp to the device.  
but I would like to go through the rpi  
concretely an ssh server on the rpi4 would do the trick.

---

<div class="post-metadata">

**Author:** ![xginn8](https://avatars.discourse-cdn.com/v4/letter/x/8baadc/32.png) [@xginn8](https://forums.balena.io/u/xginn8)\
**Post date:** [September 14, 2020, 11:00pm UTC](https://forums.balena.io/t/connection-sharing/187757/8 "2020-09-14T23:00:55Z")

</div>

You should be able to achieve what you’ve diagrammed above using a service that simply forwards the UDP traffic if you like – I recommend having a look at our Services masterclass to better understand how to set up the networking: [https://www.balena.io/docs/learn/more/masterclasses/services-masterclass/#4-networking-types](https://www.balena.io/docs/learn/more/masterclasses/services-masterclass/#4-networking-types).
