[英]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:5000
和10.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.