c# - 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.
解决方案
在 RPI 上运行 FTP 服务器,并将路由器的相应端口端口转发到 RPI。
或者 SSH 和端口将路由器的相应端口转发到 RPI,然后使用 SFTP。
免责声明,您将 PI 暴露在互联网上
推荐阅读
- c# - GZipStream 无法正确解压缩数据
- oracle - 在 Oracle JDBC 连接上获取 MySQL 错误堆栈跟踪
- python - 在 PySpark 中选择 json 数组元素
- java - 在 @Application bean 中使用构造函数注入会导致循环引用
- javascript - 如何选择一个将数组作为其构造函数的一部分的对象?
- nginx - 如何使用 Ingress Controller 在 Kubernetes 中路由请求和平衡负载?
- android - 失败的模拟器依赖
- shake-build-system - 在 Shake 中,Rules 的定义顺序重要吗?
- vue.js - Vue i18n,如何获取 dateTimeLocalization 的语言环境?
- c++ - 如何在成员函数内将函数及其参数传递给 std::async