# Writing data to an external website

**URL:** <https://discourse.nodered.org/t/writing-data-to-an-external-website/47310>\
**Category:** General\
**Created:** [17 June 2021 16:52 UTC](https://discourse.nodered.org/t/writing-data-to-an-external-website/47310 "2021-06-17T16:52:46Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanglefoot](https://avatars.discourse-cdn.com/v4/letter/t/4da419/32.png) [@Tanglefoot](https://discourse.nodered.org/u/Tanglefoot)\
**Post date:** [17 June 2021 16:52 UTC](https://discourse.nodered.org/t/writing-data-to-an-external-website/47310/1 "2021-06-17T16:52:48Z")

</div>

First I should say I'm a beginner and just finding my way around node-red  
I have written a flow which reads data (messages) from a udp port and after some filtering then displays them in a table on the UI dashboard - this bit works fine.  
I would like to access my table outside of my home network, I've read about the various security issues of opening up ports etc. so, as I have my own web site (cp panel hosted) I was wondering if node red could be made to write the table to a page on my site.  
Is this possible? if so some tips of how to get started would be appreciated

Paul

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [17 June 2021 17:04 UTC](https://discourse.nodered.org/t/writing-data-to-an-external-website/47310/2 "2021-06-17T17:04:58Z")

</div>

> [@Tanglefoot](#):
>
> cp panel hosted

Does the host provide a means of FTP or other file access? You could write to a file on the host.

Alternatively, does your website provide a callable endpoint that node-red could call to & send this data?

---

<div class="post-metadata">

**Author:** ![Tanglefoot](https://avatars.discourse-cdn.com/v4/letter/t/4da419/32.png) [@Tanglefoot](https://discourse.nodered.org/u/Tanglefoot)\
**Post date:** [17 June 2021 17:44 UTC](https://discourse.nodered.org/t/writing-data-to-an-external-website/47310/3 "2021-06-17T17:44:40Z")

</div>

Hi Steve,  
I can certainly use ftp to access my site, I already use that for my photo albums. I don't know anything about a "callable endpoint", I've never heard of this term.

Paul

---

<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:** [17 June 2021 18:36 UTC](https://discourse.nodered.org/t/writing-data-to-an-external-website/47310/4 "2021-06-17T18:36:13Z")

</div>

There are several ftp nodes on [flows.nodered.org](http://flows.nodered.org) - hopefully one will let you upload some data to your site in a format you can then just browse... you may want/need to reformat it locally first before uploading.

---

<div class="post-metadata">

**Author:** ![DrdP](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@DrdP](https://discourse.nodered.org/u/DrdP)\
**Post date:** [17 June 2021 19:48 UTC](https://discourse.nodered.org/t/writing-data-to-an-external-website/47310/5 "2021-06-17T19:48:26Z")

</div>

I used Nginx with port forwarding to a cloud server and then hosted that cloud server on a sub domain.

---

<div class="post-metadata">

**Author:** ![Tanglefoot](https://avatars.discourse-cdn.com/v4/letter/t/4da419/32.png) [@Tanglefoot](https://discourse.nodered.org/u/Tanglefoot)\
**Post date:** [18 June 2021 14:15 UTC](https://discourse.nodered.org/t/writing-data-to-an-external-website/47310/6 "2021-06-18T14:15:28Z")

</div>

Thanks to all, ftp was the way to go, up and running now

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [19 June 2021 01:06 UTC](https://discourse.nodered.org/t/writing-data-to-an-external-website/47310/7 "2021-06-19T01:06:08Z")

</div>

Do please make sure you are using SFTP or FTPS though (or SCP) so that your connection is secured.

---

<div class="post-metadata">

**Author:** ![Tanglefoot](https://avatars.discourse-cdn.com/v4/letter/t/4da419/32.png) [@Tanglefoot](https://discourse.nodered.org/u/Tanglefoot)\
**Post date:** [19 June 2021 08:17 UTC](https://discourse.nodered.org/t/writing-data-to-an-external-website/47310/8 "2021-06-19T08:17:18Z")

</div>

Thanks for the tip, I'm using the "ftp in" node and I have "Data connection encryption" ticked, there is no specific option for ftps - I hope that's ok

Paul

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [19 June 2021 10:55 UTC](https://discourse.nodered.org/t/writing-data-to-an-external-website/47310/9 "2021-06-19T10:55:47Z")

</div>

I think that there are over a dozen contributed FTP nodes, which one are you using specifically?

If you are connecting to the node from an ftp client, does it force you to use SFTP, FTPS or FTP with TLS or SSL? If not, then your connection is not secure.

---

<div class="post-metadata">

**Author:** ![Tanglefoot](https://avatars.discourse-cdn.com/v4/letter/t/4da419/32.png) [@Tanglefoot](https://discourse.nodered.org/u/Tanglefoot)\
**Post date:** [19 June 2021 11:53 UTC](https://discourse.nodered.org/t/writing-data-to-an-external-website/47310/10 "2021-06-19T11:53:56Z")

</div>

This is the node I'm using [https://flows.nodered.org/node/node-red-contrib-ftp](https://flows.nodered.org/node/node-red-contrib-ftp)  
Since reading your earlier post I'm looking at using an external ftp program to send the files produced by node-red to my web site.  
Allway Sync, which I already have installed, seems to fit the bill, it offers sftp and automatic sync of files from local drive to remote destination at a pre-determined time. I haven't had chance to try it yet, but it looks promising

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [19 June 2021 12:40 UTC](https://discourse.nodered.org/t/writing-data-to-an-external-website/47310/11 "2021-06-19T12:40:03Z")

</div>

I've not used it but you should try to connect to it using plain FTP, if it allows a connection then you know that you need to do something different.

---

<div class="post-metadata">

**Author:** ![Tanglefoot](https://avatars.discourse-cdn.com/v4/letter/t/4da419/32.png) [@Tanglefoot](https://discourse.nodered.org/u/Tanglefoot)\
**Post date:** [20 June 2021 12:37 UTC](https://discourse.nodered.org/t/writing-data-to-an-external-website/47310/12 "2021-06-20T12:37:06Z")

</div>

Ok, just for reference for other users, I finished up using WinSCP ftp program.  
I had to get SSH private and public keys from my web site provider, using these keys I get a secure ftp connection.  
WinSCP has a "watch folder" function, any changes made in the local folder are sync to the remote folder - all seems to be be working well.  
Thanks to all those that have replied to my question, this now wraps it up

Paul

---

<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:** [4 July 2021 12:37 UTC](https://discourse.nodered.org/t/writing-data-to-an-external-website/47310/13 "2021-07-04T12:37:08Z")

</div>

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