简体   繁体   中英

A client connected to two servers with the same port

According to TCP/IP specification I consider it impossible to ESTABLISH two connections with the same port from the client side. BUT IT DIT!

问题

The matchine 172.22.3.137 acts as client and left ones are servers. So does this mean it is possible for a client to connect to multiple servers with identical port?

Any ideas?

According to the TCP specification, a connection is identified by four numbers: client port, client address, server port, server address.

It is entirely possible for client ports to be reused, otherwise you could have only 64k connections from any machine.

What is not possible, is to connect from the same client port to the same server (address and port), this would make the two connections indistinguishable.

Have you checked that when second connection was setuo first one still exist ??

Check am sure first one must have terminated as if not then your machine willnot send any ack and three way handshake will not complete.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM