在C#中使用免费的STUN和TURN服务器进行NAT遍历 [英] NAT traversal using free STUN and TURN servers in C#

查看:145
本文介绍了在C#中使用免费的STUN和TURN服务器进行NAT遍历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我以前的帖子:

仅使用免费的NAT遍历C#中的STUN和TURN服务器

我正在制作一个在线应用程序,可以相互进行点对点通信.预计大多数用户都将在NAT之后的专用网络中,我需要遍历它.我负担不起外​​部服务器的费用,因此我唯一可以依靠的是免费服务器,例如 Numb (这意味着我无法提供自己的实现或扩展.)

I am making an online application that communicates with each other peer-to-peer. Most users are expected to be in their private network behind a NAT, and I need to traverse it. I can't afford an external server, so the only things that I can depend on is free servers like Numb (which means I cannot provide my own implementation or extension of it.)

但是,经过一些研究,我不知道如何使用这样的服务器.我也没有找到可以与C#一起使用的库.

However, after some research, I couldn't figure out how to use such servers. I didn't find a library that could be used with C# either.

我应该如何使用此类服务​​器通过网络建立连接?有没有可以简化这些内容的库? (我是一名高中学生,只能使用免费的一个.)如果它还实现了ICE协议,那就更好了.

How should I use such servers to establish a connection over networks? Is there a library to simplify those stuff? (I'm a high-school student and I can only use a free one.) It would be better if it also implemented ICE protocol.

有人建议我使用UPnP,这确实对我有效,但是有些用户不喜欢在其路由器上打开UPnP.这就是为什么我再次在这里问.

Some people suggested I use UPnP, and that indeed did work well for me, but some of the users did not like to turn on the UPnP on their routers. That's why I'm asking it here again.

推荐答案

我相信您可以使用以C#编写的OfficeSIP TURN服务器

I belive you can use OfficeSIP TURN Server which is written in C#

http://sourceforge.net/projects/turnservernet/

这篇关于在C#中使用免费的STUN和TURN服务器进行NAT遍历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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