问题描述
我需要使用http隧道在NAT背后的2个客户端之间进行通信.是否有可能?要实现此目的,需要进行什么所有设置(例如http代理服务器等)?是否有任何库或示例代码可用于在C#中通过TCP实现HTTP隧道传输?
My need is to communicate between 2 client behind NAT using http tunneling. Is it possible? What all setup is needed to achieve this (like http proxy server etc.)? Is there any library or sample code available for implementing http tunneling over TCP in C#?
推荐答案
您可能可以使用此库: http://granados.sourceforge.net/
It might be possible for you to use this library:http://granados.sourceforge.net/
它支持端口转发(在这种情况下为隧道),但我自己还没有尝试过.
It supports port forwarding (tunneling in this case),but I haven't tried it myself.
这是一个SSH库...因此,如果您可以在连接的任一端设置SSH服务器您将能够建立SSH连接并创建隧道.
It's an SSH library... so if you can set up an SSH server on either end of the connectionyou'll be able to establish an SSH connection and create a tunnel.
这篇关于Http隧道通过C#(TCP)传递防火墙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!