建立代理连接(客户端/服务器都在 NAT 之后) [英] Makeing a Proxy connection (both client / server behint NAT)

查看:36
本文介绍了建立代理连接(客户端/服务器都在 NAT 之后)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让一个代理服务器在 NAT 后面运行.(好吧,我可以在路由器中配置端口转发,但我要立即使用!)

I want to get a PROXY Server getting to run behind NAT. (Ok I can configure the Port forwarding in the router, but I want it instantly!).

所以假设 A 想要使用 Bs 运行代理服务器.A/B 位于带有 NAT 的路由器后面.所以现在怎么办?A 调用服务器 S 让他知道他想要一个到 B 的代理连接,而 B 已经告诉 S 他已经准备好连接了.所以 S 以某种方式交换 IP/端口,以便 A/B 可以发送 UDP 包以获取连接(打孔).

So lets say A wants use Bs running proxy server. A / B are behind a router with NAT. So what now? A calls up the Server S to let him know that he wants a Proxy connection to B while B did already tell S that he is ready to connect. So S exchages somehow the IPs / Ports so that A / B can send UDP Packages to get a connection (hole punshing).

我现在还好吗?

我读过关于 STUN (http://www.codeproject.com/KB/cs/STUN_client.aspx)但是我的反向IP/端口到底对我有什么帮助!?A/B 是否需要完全交换来自 STUN 服务器的那些并通过这个端口打一个 UPD 孔洞!?我不这么认为.

Ive read abou STUN (http://www.codeproject.com/KB/cs/STUN_client.aspx) but how the hell does me the backgiven IP / Port help me!? Does A / B need to exchange exactly those from the STUN Server and make a UPD hole Punsh through this Port!? I dont think so.

我真的会因为帮助我而付出很多!因为我的研究,为此需要很长时间.我花了30多个小时来获取信息,但没有想出至少一个想法!

I would really apricieate a lot for helping me! Because my research, for this takes now friking to long. Id spend more than 30h to get Information and didnt come up with at least a idea!

也确实需要其他/更好的解决方案:) 请帮助我.首选语言 C#.

Also other / better solutions are truly wanted :) Please help me guys. Prefered language C#.

推荐答案

我在 Practical JXTA II 一书中写了一个关于 NAT 穿越的章节,可在 Scribd 在线阅读.它描述了可用的不同技术.这可能是您项目的一个很好的起点.

I have written a chapter about NAT traversal in the Practical JXTA II book available online for reading at Scribd. It describes the different techniques available. It could be a good starting point for your project.

这篇关于建立代理连接(客户端/服务器都在 NAT 之后)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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