如何将连接传递到另一台计算机 [英] How to Pass connection to another computer

查看:104
本文介绍了如何将连接传递到另一台计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
我在两台计算机(C1和C2)之间建立了TCP/IP连接.第三台计算机(C3).我想将一些数据从C3发送到C1,而不创建新的连接.我想使用C1中打开的端口并从C2和C3发送数据.有可能吗?
(抱歉,英语描述不正确)

Hello
I have a TCP/IP connection between two computers(C1 & C2). There is a third computer(C3). I want to send some data from C3 to C1 without creating new connection. I want to use opened port in C1 and send data from C2 & C3. Is it possible?
(Sorry for bad English description)

推荐答案

Napster25写道:
Napster25 wrote:

我想将数据从C3发送到C1,而无需创建新连接.

I want to send some data from C3 to C1 without creating new connection.



如果C1在端口X上侦听,则C2和C3都可以连接到该端口.然后,C1需要管理传入的数据以确定其来源.



If C1 is listening on port X then C2 and C3 can both connect to that port. C1 then needs to manage the incoming data to determine where it came from.


Napster25写道:
Napster25 wrote:

C2直接向C3发送一些数据. (C2冒充为C1)

C2 send some data to C3 direct. (C2 Impersonate as C1)



然后,C2将需要创建与C3的连接.没有通讯链接,您将无法在两台计算机之间进行通讯.



Then C2 will need to create a connection to C3. You cannot communicate between two computers without a communications link.


Napster25写道:
Napster25 wrote:

端口已被防火墙关闭. Cliens仅可以连接到服务器.客户听不到.

Ports are closed by firewall. Cliens only can connect to server. Clients can''t listen.



然后,您将无法做您想做的事.您唯一的选择是让服务器充当邮递员并从一个客户端接收数据并将其发送给另一个客户端.



Then you cannot do what you want. Your only option is for the server to act as postman and receive data from one client and send it to another.


这篇关于如何将连接传递到另一台计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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