Reputation: 173
65535 is the maximum number of TCP ports available.
On server side, after accept() a new socket is generated having different address than the server-socket.
Hence, for an HTTP traffic over TCP, a single machine could have a maximum of
(65535 - well_known_ports)
socket connections.
Is that correct?
Upvotes: 0
Views: 1090
Reputation: 183
The connection is identified by Source address, Destination Address, Source port, Destination port. So if you fix the destination port to 80 (HTTP), the destination address to your server IP and the source address to your client IP, then, yes the number of contemporaneous connections cannot exceed the number of port range.
Theoretically your server can have more connections than the port range if it talks with multiple clients.
Upvotes: 1