互联网上的p2p文件传输 [英] p2p file transfer over internet

查看:129
本文介绍了互联网上的p2p文件传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这里有几个类似的问题,例如这个一个.我需要在两台计算机之间建立连接并能够发送大文件.让我解释一下阅读类似文章时遇到的问题:

I know there are several similar questions out there such as this one. I need to set up a connection between two computers and be able to send a large file. Let me explain the problems that I encountered when reading similar posts:

1)他们中很多人都在谈论tcp连接.我能够发送数据,但是大多数时候我无法发送大量数据.

1) lots of them talked about tcp connections. I was able to send data but most of the time I was not able to send large amounts of data.

2)大多数示例都是在本地网络中创建的.我能够使用tcp示例通过Internet在两个不同的网络上发送数据,但是我必须打开路由器上的端口,并将其转发到要与之通信的计算机上.

2) most of the examples where created in local networks. I was able to send data over two different networks over the internet with the tcp examples but I had to open ports on the router and forward them to the computer that I wanted to communicate to.

3)诸如monotorrent或bitsharp之类的图书馆很难找到,我找不到很好的例子.我无法使他们工作.

3) Libraries such as monotorrent or bitsharp where hard to find and I did not find good examples. I where not able to make them work.

因此,简而言之,我只需要通过Internet将文件从一台计算机发送到另一台计算机,并且我不想打开路由器上的端口,也不需要任何类型的端口转发.例如,当使用limewire时,人们不必在路由器上打开端口,而从其他人的计算机上下载文件.如果有人可以向我提供有关如何设置服务器以及如何使用客户端代码将文件发送到服务器的简短示例,那将是很好的.

so in short I just need to send files from one computer to another computer over the internet and I don't want to open ports on the router nor do any kind of port forwarding. people do not have to open ports on their routers when using limewire for example and they are downloading files from someone else computer. It will be nice if someone can provide me with a short example of how to set up the server and how to send a file to the server with the client code.

推荐答案

您提到的端口打开和转发问题是一个非常现实的问题,没有容易解决的方法.像uTorrent这样的应用程序使用 UPnP端口映射和/或

The port opening and forwarding problem that you mention is a very real one, and there is no easy work around. Applications like uTorrent use UPnP port mapping and / or NAT-PMP to talk to your router automatically and get it to do the relevant port-mappings "on the fly". Not all routers implement these protocols (and in many cases, users might disallow their use for security reasons), so the web is littered with questions on how to do port forwarding for limewire, uTorrent, etc.

除了继续阅读之外,我建议您更详细地说明您的问题,例如:

Other than reading up on this, I would recommend that you specify your questions in a bit more detail, e.g.:

我能够发送数据,但是大多数时候我无法发送大量数据.

I was able to send data but most of the time I was not able to send large amounts of data.

对于我们而言,这有点含糊不清,无法猜测出问题所在.您正在发送什么大小的文件,通过什么连接发送,是否收到错误消息,或者只是速度太慢等等?

this is a bit too vague for us to guess at what the problem is. What size file were you sending, over what connection, did you get errors, or was it just slow, etc?

这篇关于互联网上的p2p文件传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆