是否有公共 FTP 服务器来测试上传和下载? [英] Is there a Public FTP server to test upload and download?
问题描述
我想做的是使用 c# 测量宽带速度.
What I want to do is measure broadband speed using c#.
为此,我使用 NetworkInterface.BytesReceived
和 BytesSent
来获取从我的网络适配器发送和接收的当前字节数并获取 DateTime代码>.
To do this, I use NetworkInterface.BytesReceived
and BytesSent
to get the current amount of bytes sent and received from my network adapter and get the DateTime
.
然后我下载/上传文件并再次获取 BytesReceived
/BytesSent
和 DateTime
.下载/上传速度就是BytesReceived
/BytesSent
的差除以时间差.
Then I download/upload a file and get the BytesReceived
/BytesSent
and DateTime
again. The download/upload speed is just the the difference between the BytesReceived
/BytesSent
divided by the time difference.
现在我想知道是否有可以下载和上传文件的公共 FTP 服务器.
Now I am wondering if there is a public FTP server where I can download and upload files.
推荐答案
Tele2提供ftp://speedtest.tele2.net ,您可以匿名登录并上传任何内容以测试您的上传速度.对于下载测试,它们提供固定大小的文件,您可以选择最适合您的测试的文件.
Tele2 provides ftp://speedtest.tele2.net , you can log in as anonymous and upload anything to test your upload speed. For download testing they provide fixed size files, you can choose which fits best to your test.
您可以使用 anonymous 的用户名和任何密码(例如 anonymous )进行连接.您可以将文件上传到 upload 文件夹.您不能在此处创建新文件夹.您的文件会在上传成功后立即删除.
You can connect with username of anonymous and any password (e.g. anonymous ). You can upload files to upload folder. You can't create new folder here. Your file is deleted immediately after successful upload.
在这里找到:http://speedtest.tele2.net/
这篇关于是否有公共 FTP 服务器来测试上传和下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!