Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If the client joins to a server, then there is a local port, and a remote port in each connection. What happens, if more than 65535 client tries to join to my server?

share|improve this question
You will almost certainly run out of file handles before you hit a limit of port counts. Your system might also have limits related to firewall state tracking. But I suspect It would be somewhat protocol/application dependent. – Zoredache Jun 20 '13 at 7:35
up vote 1 down vote accepted

The client connects to the server on the port that it is already listening on. No new port is needed to accept an incoming connection.

share|improve this answer
You are assuming a simple TCP protocol like http/ssh here. Some protocols, like FTP, will open a port per connection. – Zoredache Jun 20 '13 at 7:33
@Zoredache: It is unhelpful to give an overly complex answer to an extremely simple question. There is a common misunderstanding about how ports are assigned and giving a complex answer will likely just help the misunderstanding persist. – David Schwartz Jun 20 '13 at 7:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.