sockets - Are there applications where the number of network ports is not enough? -


in tcp/ip, port number specified 16-bit field, yielding total of 65536 port numbers. however, lower range (don't know how far goes) reserved system , cannot utilized application. assuming 60,000 port numbers available, should more plenty nework application. however, mmorpg games have tens of thousands of concurrently connected users @ time.

this got me wondering: there situations network application can run out of ports? how can limitation worked around?

you don't need 1 port per connection.

a connection uniquely identified tuple of (host address, host port, remote address, remote port). it's host ip address same each connection, can still service 100,000 clients on single machine 1 port. (in theory: you'll run problems, unrelated ports, before that.)


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -