Quote:
Originally posted by ccoder
As of the latest update, port 1001 (which falls in the well known port numbers range of 0-1023) is unassigned. However, you should probably use a port number in the registered ports range of 1024-49151. This range is "listed by the IANA and on most systems can be used by ordinary user processes or programs executed by ordinary users.".
Having passed along that tidbit, I would say that you should be safe if you select an unregistered port that is reasonably high in the registered range. Client apps that let the system select the port for them will most likely be assigned a port number well below 9999. That leaves quite a range of port numbers for use by any client apps running on the server's system.
IMHO, your server shouldn't need an array of listeners.
so bascially... if the port that my server uses is in use on the client system i shoudl tell the client that the port is in use and they need to close whatever program is using it if they want to run my app right?