Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - 转发
Search - 转发 - List

端口映射

PortTransfer_三种模式。
(1) PortTransfer Port Dest_IP Port
在运行本程序的计算机上监听Port端口,并将所有连接请求转到Dest_IP的Port去
(2) PortTransfer ctrlIP ctrlPort Dest_IP Port
和模式3配合用,程序将先主动连接ctrlIP:ctrlPort,之后所有在模式3的ServerPort端口的请求转到Dest_IP:Port去
(3) PortTransfer ctrlPort ServerPort
在执行模式2前先执行,将监听ctrlPort和ServerPort 端口,ctrlPort供模式2使用,ServerPort提供服务.

模式1适合在网关上运行,将内网IP的端口映射到网关上,
如:PortTransfer 88 192.168.0.110 80
那么网关将开启88端口,所有在88端口的请求将转到内网的192.168.0.110的80端口

模式2和模式3联合使用可以将内网的IP和端口映射到指定的IP和端口上,
一般在公网IP(假设61.1.1.1)上执行模式3,如:PortTransfer 99 80, 80是映射过来的端口
内网用户执行模式2如:PortTransfer 61.1.1.1 99 127.0.0.1 80,
那么程序在内网将先连接61.1.1.1:99建立个连接,并等待接收命令。

之后当61.1.1.1的80端口有请求,将通过99端口命令内网机子和公网机子建立条新的数据连接,
并将请求通过新建的连接将请求转发到内网机.

最后更新:2007.8.31 By DSSZ

最新更改了模3,接收到新连接接令后,不再创建新的临时端口,避免中转服务器有防火墙,临时端口连接不上的情况!
可参看 PortTransfer_3 的修改部分,在transport_old.cpp里面


Date : 2007-12-13 Size : 15.21kb User : testbs

数据转发服务器


Date : 2008-02-16 Size : 319.9kb User : nurbol

基于WinSock的UDP数据转发(Win XP;Visual C++ 6.0)-WinSock based on the UDP data transmitted (Win XP; Visual C 6.0)
Date : 2008-10-13 Size : 55.91kb User : 刘云

实现Oracle客户端和Oracle服务器中间转发的Java源代码.*注:使Window下Oracle数据和侦听端口共享,需要在注册HOME0表中加USE_SHARED_SOCKET=TRUE即可-Oracle client and the Oracle server transmitted among Java source code .* Note : Window to enable Oracle data and the interception of port sharing, the need to register HOME0 table increases can USE_SHARED_SOCKET = TRUE
Date : 2008-10-13 Size : 13.78kb User : 钱海兵

串口转发服务程序
Date : 2010-11-01 Size : 330.66kb User : jxnetinfo

端口转发的东东,修改自lcx的端口转发源代码
Date : 2010-11-04 Size : 3.64kb User : sohotuk@hotmail.com

这是一个半导体制冷冰柜的源码码,我从网上看到的,转发给大家参考。
Date : 2011-03-19 Size : 43.88kb User : zhou_frank

WINPCAP+BCB6实现的双网卡数据透明转发程序
Date : 2011-05-25 Size : 170.57kb User : grassgrass

IPv6分组收发转发实验流程,可以进一步理解网络层协议工作原理。
Date : 2011-06-09 Size : 57.43kb User : xuzhu1990

TCP数据转发服务器源码,该程序服务器监听两个连接。一旦连接建立后,就把两个客户端的数据相互转发。克服了两个私网IP电脑无法相互传送数据的难题。该代码在VC6.0环境下编译
Date : 2011-06-10 Size : 1.76mb User : huangdafu@163.com

IPv4转发实验,南京大学,清华大学
Date : 2012-03-15 Size : 1.26kb User : 1021760314@qq.com

基于TCP/IP的网络通信技术实现了面向连接的用户与服务器间点对点异步通信,本代码在该基础上应用了多线程以及共享数据结构技术,使网络服务器具有了多用户间数据转发的功能,进而解决了局域网多用户间的通信问题。 使用时先建立ODBC,Server与ChatServer先运行,然后运行Client- Has realized based on the TCP/IP network communication face between the connection user and the server the point-to-point asynchronous communication, this code has applied multi-thread as well as the sharing construction of data technology in this foundation, enable the network server to have the function which the multiuser between data retransmitted, then has solved the local area network multiuser between correspondence problem. When use first establishes ODBC, Server and ChatServer first moves, then moves Client
Date : 2025-07-08 Size : 251kb User : 许豫飞

基于TCP/IP的网络通信技术实现了面向连接的用户与服务器间点对点异步通信,本代码在该基础上应用了多线程以及共享数据结构技术,使网络服务器具有了多用户间数据转发的功能,进而解决了局域网多用户间的通信问题。 使用时先建立ODBC,Server与ChatServer先运行,然后运行Client- Has realized based on the TCP/IP network communication face between the connection user and the server the point-to-point asynchronous communication, this code has applied multi-thread as well as the sharing construction of data technology in this foundation, enable the network server to have the function which the multiuser between data retransmitted, then has solved the local area network multiuser between correspondence problem. When use first establishes ODBC, Server and ChatServer first moves, then moves Client
Date : 2025-07-08 Size : 247kb User : 唐富华

本软件用于通用的基于TCP协议的数据转发,支持多代理服务器。- This software general uses in to retransmit based on the TCP agreement data, supports the multi- proxies server.
Date : 2025-07-08 Size : 312kb User :

实现Oracle客户端和Oracle服务器中间转发的Java源代码.*注:使Window下Oracle数据和侦听端口共享,需要在注册HOME0表中加USE_SHARED_SOCKET=TRUE即可-Oracle client and the Oracle server transmitted among Java source code .* Note : Window to enable Oracle data and the interception of port sharing, the need to register HOME0 table increases can USE_SHARED_SOCKET = TRUE
Date : 2025-07-08 Size : 14kb User : 钱海兵

本人写的代理转发服务器。-I wrote the proxy server.
Date : 2025-07-08 Size : 39kb User : 冯易

一个自动组包 解包的实用程序 多用于不同平台之间的数据转发-an automatic Package Solution Pack more practical procedures for different platforms between the transmitted data
Date : 2025-07-08 Size : 12kb User : 马俊

基于TCP/IP的网络通信技术实现了面向连接的用户与服务器间点对点异步通信,本文在该基础上应用了多线程以及共享数据结构技术,使网络服务器具有了多用户间数据转发的功能,进而解决了局域网多用户间的通信问题。-TCP/IP-based network communications technology to achieve a connection-oriented users and server asynchronous point-to-point communications, in the paper on the basis of a multi-threaded applications and share data structure technology, network server with a multi-user data transmitted between the functions, thereby resolving the inter-LAN multi-user communication issues.
Date : 2025-07-08 Size : 828kb User : 苏正荣

基于WinSock的UDP数据转发(Win XP;Visual C++ 6.0)-WinSock based on the UDP data transmitted (Win XP; Visual C 6.0)
Date : 2025-07-08 Size : 56kb User : 刘云

端口转发终极开放版,易源码,可以供参考用.(Port forwarding the ultimate open edition)
Date : 2025-07-08 Size : 77kb User : fnp902003
« 12 3 4 5 6 7 8 9 10 ... 50 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.