Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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
2  
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
2  
@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

 
discard

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.