首页 > 解决方案 > C# Transfer file over internet

问题描述

I have a raspberry pi operating 24/7 in a different location and I have a C# script running on my laptop. I want to transfer a file from my computer to the raspberry pi over the internet using this script. The raspberry pi and my laptop are NOT on the same local network, but both have access to internet. What is the best way to transfer the file? Can someone point me in the right direction?

The file is a text file which would be a few kilobytes long.

标签: c#raspberry-pifile-transfer

解决方案


在 RPI 上运行 FTP 服务器,并将路由器的相应端口端口转发到 RPI。

或者 SSH 和端口将路由器的相应端口转发到 RPI,然后使用 SFTP。

免责声明,您将 PI 暴露在互联网上


推荐阅读