如何以编程方式在2台PC(或1台PC& 1电话)之间构建虚拟隧道? [英] How to build virtual tunnel between 2 PC(or 1 PC & 1 phone) programatically?

查看:76
本文介绍了如何以编程方式在2台PC(或1台PC& 1电话)之间构建虚拟隧道?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在互联网上有一台服务器,需要连接2台设备(理想情况下是PC< - > Phone),路由器和防火墙没有问题。如果我无法正确地进行,则意味着PC必须没有传入连接,防火墙或阻止器将通过路由器检测到(例如TeamViewer或Skype - 恶魔聪明的软件)。目标机器已指定。请帮忙。



编辑:我知道如何连接2台设备,将所有流量通过我的服务器,但最终会导致超载。所以我需要通过服务器连接两个设备,一个到另一个,不知何故..

解决方案

这不是很直接,但是可以。您将需要使用服务器在两个客户端之间创建连接。这用于Peer2Peer技术。看看这篇文章:通用P2P架构,教程和示例 [ ^ ]

I have a server in the Internet and need to connect 2 devices(ideally PC<->Phone) without problems with routers and firewalls. If I unredstood correctly, it means that PC must have no incoming connections, wich will be detected by firewall or blocker by router (example TeamViewer or Skype - diabolically clever software). Target machines are specified. Please help.

EDIT: I know how to connect 2 devices, passing all traffic through my server, but it eventually will cause overload on it. So I need to connect directrly 2 devices, one to another, via server, somehow..

解决方案

This is not very straight forward, but is possible. You will need to use the server to create the connection between the two clients. This is used in Peer2Peer techniques. Have a look at this article: Generic P2P Architecture, Tutorial and Example[^]


这篇关于如何以编程方式在2台PC(或1台PC&amp; 1电话)之间构建虚拟隧道?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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