Teamviewer 如何使用防火墙后面的直接端口共享图像
我发现了这个: 如何teamviewer找到我的电脑 但我无法理解,而且答案也不是我想要的。 我正在寻找.net 中的解决方案。
如果我有图像发送器应用程序,Teamviewer 如何连接到图像接收器应用程序?是否包含任何隧道系统?或者Teamviewer只使用80端口?
Skype 是否使用相同的语音聊天方法?
* 示例 *
我在 PC-A 上,这里有一个 50KB 的图像作为屏幕截图框架,我想将其发送到我的 PC-B。现在,TV(teamviewer)会查看从 1 到 65,000 的整个端口范围,看是否有任何端口可以连接 SERVER-PC。我认为至少 80 端口就能成功,对吗?但在我的电脑上,端口 4001 也已打开,电视将使用 4001 来实现该功能。在 PC-B 上,它还会检查开放端口并创建端口 80 和 6500,并将使用 6500 来实现该功能。我现在的问题是,数据去哪里?我的图像是否首先使用端口 4001 发送到 SERVER-PC,并且 50KB 会在那里短暂存储,然后 PC-B 将在端口 6500 上下载它?我不敢相信这是事实,因为它会产生太多的电视-服务器-PC 流量。但如何才能发挥作用呢?
此致
I found this:
How does teamviewer find my computer
but I could not understand and the answers are not what I am looking for.
I'm looking for a solution in .net.
If I have an image-Sender-app and how can Teamviewer connect to image-Receiver-app? Is there any tunnelig system included? Or does Teamviewer only use Port 80?
Does Skype use same methode for voice chat?
* EXAMPLE *
I am on PC-A and I have an 50KB image here as Screenshot-Frame and would like to send it to my PC-B. Now, TV (teamviewer) looks on the whole portrange from 1 to 65,000 if any port could connect the SERVER-PC. I think minimum Port 80 will success, right? But on my computer also port 4001 is open, TV will use 4001 for the feature. On PC-B it checks also for open ports and founds port 80 and 6500 and will use 6500 for the feature. My question is now, where are data going to? Is my image first going to SERVER-PC by using port 4001 and the 50KB is stored for short time there and PC-B will download it on port 6500? I cannot believe that that is the truth because it would create too much TV-SERVER-PC traffic. But how can it work?
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
另一个答案确实涵盖了要点。
本文 (旧的,但仍然相关)描述了 Skype 如何绕过防火墙 - 也许它有助于更好地解释该方法。
据我所知,TeamViewer 采用完全相同的方法 - 两个 TeamViewer 客户端应用程序主动连接到中央服务器,然后按照文章中所述协商连接。
PC-A 和 PC-B 直接相互通信。 SERVER-PC 仅用于在两者之间建立通信,以在两台计算机的防火墙上打孔。文章中的关键技巧是这个(强调我的):
The other answer covers the essentials really.
This article (old, but still relevant) describes how Skype gets around firewalls - maybe it helps explain the method better.
As far as I know, TeamViewer employs the exact same method - both TeamViewer client apps connect actively to a central server, and then negotiate the connection as described in the article.
PC-A and PC-B communicate directly with each other. SERVER-PC is used only to establish communication between the two, to punch the hole into both computers' firewalls. The crucial trick in the article is this (Emphasis mine):
其他 Teamviewer 问题中的第一个答案是正确的 - 它使用中央服务器来穿过防火墙 - 可能会回退到使用更严格的防火墙进行 HTTP POST。这样,两个 Teamviewer 不会相互通信,仅与中央服务器通信。
The first answer in the other Teamviewer question is correct - it uses a central server to work through firewalls - probably falling back to making HTTP POSTs with the more restrictive firewalls. This way the two Teamviewers are not communicating with each other, only with the central server.