# P2P communication

**URL:** <https://discourse.nodered.org/t/p2p-communication/6376>\
**Category:** General\
**Created:** [4 January 2019 09:16 UTC](https://discourse.nodered.org/t/p2p-communication/6376 "2019-01-04T09:16:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpaolojo](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@cpaolojo](https://discourse.nodered.org/u/cpaolojo)\
**Post date:** [4 January 2019 09:16 UTC](https://discourse.nodered.org/t/p2p-communication/6376/1 "2019-01-04T09:16:30Z")

</div>

hi all and Happy New year.  
I would establish a communication between Rpi and a smartphone. In other word I would control some input/output connected to Rpi using node-red dashboard displayed in the smartphone.  
To do this, I'm using Rpi as hotspot (in this way I connect the smartphone directly to the Right wifi) .this method has some problem. for this reason i m searching for a solution where the Rpi (through node red) send some data directly to smartphone (using Bluetooth for example) and the dashboard is installed on the smartphone side.  
any suggestions?  
thanks a lot  
Paolo

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [4 January 2019 11:26 UTC](https://discourse.nodered.org/t/p2p-communication/6376/2 "2019-01-04T11:26:03Z")

</div>

What dashboard are you installing on the phone side then ? It will need to make a connection back to Node-RED to get the required information, and Node-RED will have to be configured to supply it in the correct format for whatever dashboard you choose to use. Hence why using a browser is often the simpler option as that knows how to talk and display the widgets. You could use the node-red-contrib-uibuilder project to help get you started building your own dashboard which could be considerably lighter in terms of resources at your client/phone end.

You can in theory also run Node-RED locally on an Android device if it support Termux or similar app - see install instructions on the Node-RED site - but then you still need to send it data from your Pi.

What issues are you having with just using the default dashboard ?

---

<div class="post-metadata">

**Author:** ![cpaolojo](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@cpaolojo](https://discourse.nodered.org/u/cpaolojo)\
**Post date:** [4 January 2019 14:01 UTC](https://discourse.nodered.org/t/p2p-communication/6376/3 "2019-01-04T14:01:41Z")

</div>

thanks a lot for your contribution.  
now the main issue is the following: when I connect the smartphone to wifi Rpi hotspot I have to disable the 4g connection (otherwise smartphone doesn't load the node red dashboard). since the Rpi doesn't share internet connection, smartphone loses the Internet connection.
