如何通过Internet向远程对等方发送数据 [英] How to send data to remote peer over internet

查看:61
本文介绍了如何通过Internet向远程对等方发送数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要构建一个应用程序以将数据从一个对等方传输到另一个(p2p)应用程序.这两个系统都可以通过不同的网络(不同的IP甚至是ISP)进行访问
我该如何跟踪要向其传输数据的机器的公共IP地址,然后再使用私有IP地址呢?.

I need to build an application to transfer data from one peer to another (p2p) application. where both of the systems can be over diffrent networks (diffrent IPs or even ISPs)
How can i track the public then private IP address of machine to transmit data to.. ?

推荐答案

私有地址对您来说用处不大,因为您可以不能连接到他们

您可能需要在中间计算机上使用代理系统,或者需要查看 UPnP [
Private addresses aren''t much use to you, because you can''t connect to them

You either need a brokering system on an intermediate machine, or you need to look at UPnP[^], to handle NAT


这篇关于如何通过Internet向远程对等方发送数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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