简体   繁体   English

在Linux中,是否可以将两个连接从相同的客户端端口连接到不同的服务器端口?

[英]Is it possible in Linux to have the two connections from the same client port to different server ports?

Say, the IP address of my Linux system is 10.0.0.2. 假设我的Linux系统的IP地址是10.0.0.2。

Is it possible, under any imaginable circumstance, that there are two connections that may look like the following, ie two connections with the same client port (eg 10.0.0.2:21426 ) connecting to two separate server ports (eg 10.0.0.2:5000 and 10.0.0.2:5001 )? 在任何可以想象的情况下,是否有可能存在两个如下所示的连接,即两个具有相同客户端端口(例如10.0.0.2:21426 )的连接连接到两个单独的服务器端口(例如10.0.0.2:500010.0.0.2:5001 )?

10.0.0.2:21426 --> 10.0.0.2:5000
10.0.0.2:21426 --> 10.0.0.2:5001

I don't care if the two client ports belong to the same process or different processes. 我不在乎两个客户端端口是属于同一进程还是属于不同进程。 I also don't care if the two server ports belong to the same process or different processes. 我也不关心两个服务器端口是属于同一进程还是属于不同进程。

I just want to know if there is any possible situation where the above mentioned scenario is possible. 我只想知道上述情况是否可能发生。

Yes, this is possible. 是的,这是可能的。 A good example of this is FTP, where multiple file transfers in active mode would all originate from 10.0.0.2:20 to the various clients. FTP就是一个很好的例子,在FTP中,处于活动模式的多个文件传输都将从10.0.0.2:20发起到各个客户端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 扎比克斯。 为什么在两个相同的 linux 服务器上,具有相同的配置和相同的模板,我在 zabbix 服务器上有不同的项目和触发器? - Zabbix. Why on two same linux servers, with the same configuration and same template, I have different items and triggers on zabbix server? UDP如何使用绑定的端口从服务器端的不同端口恢复 - UDP how to recvfrom different ports at server side with binded port 在Java中从客户端查找使用的服务器端口 - Find used server ports from client in java 我们可以在同一系统上运行的两个端口上有两个清漆吗? - Can we have two varnish on two ports running on same system? linux上的两个进程监听同一个串口 - Two processes listening to same serial port on linux 客户端使用相同的端口连接到两台服务器 - A client connected to two servers with the same port Linux不接受与端口25的连接 - Linux not accepting connections to port 25 相同的脚本在 linux 服务器中以两种不同的执行方式产生两个不同的输出 - same script producing two different outputs with two different ways of execution in linux server 两个线程从相同的 function RT Linux 给出不同的 output - Two threads giving different output from same function RT Linux 可能将Windows上的TCP客户端连接到Linux上的服务器? - possible to connect a tcp client on windows to a server on linux?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM